diff options
| author | Lars Ingebrigtsen | 2019-09-30 16:47:48 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-09-30 16:47:48 +0200 |
| commit | ab980bd7f5f9ec396ec84254bece6048f36ad8ff (patch) | |
| tree | 96f96c0f439e2c62a163a0cdb0dcf0675ed19068 /src | |
| parent | 224c51075dde7f571e996578d15b5a10eeae43ca (diff) | |
| download | emacs-ab980bd7f5f9ec396ec84254bece6048f36ad8ff.tar.gz emacs-ab980bd7f5f9ec396ec84254bece6048f36ad8ff.zip | |
Mention locale-related complications in format-time-string doc string
* src/timefns.c (Fformat_time_string): Mention that the width in
specifiers like %NX is often in bytes, not characters (bug#20258).
Diffstat (limited to 'src')
| -rw-r--r-- | src/timefns.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/timefns.c b/src/timefns.c index 330d5623f08..9509b6b63eb 100644 --- a/src/timefns.c +++ b/src/timefns.c | |||
| @@ -1437,8 +1437,12 @@ A %-sequence can contain optional flags, field width, and a modifier | |||
| 1437 | `^' Use upper case characters if possible. | 1437 | `^' Use upper case characters if possible. |
| 1438 | `#' Use opposite case characters if possible. | 1438 | `#' Use opposite case characters if possible. |
| 1439 | 1439 | ||
| 1440 | A field width N is an unsigned decimal integer with a leading digit nonzero. | 1440 | A field width N is an unsigned decimal integer with a leading digit |
| 1441 | %NX is like %X, but takes up at least N positions. | 1441 | nonzero. %NX is like %X, but takes up at least N positions. The |
| 1442 | field width is (on GNU/Linux and some other systems) in measured in | ||
| 1443 | bytes, not characters. It depends on the locale what the width (in | ||
| 1444 | characters) %NX will end up being, especially when there are non-ASCII | ||
| 1445 | characters in %X. | ||
| 1442 | 1446 | ||
| 1443 | The modifiers are: | 1447 | The modifiers are: |
| 1444 | 1448 | ||