diff options
author | Jim Meyering <jim@meyering.net> | 2000-01-02 07:09:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-01-02 07:09:54 +0000 |
commit | 05fcf7df274ed69eb8cff7c29b68dd64fd0dc892 (patch) | |
tree | 52630965acc1637838c730d56e6aed47b2bb7ee0 /lib | |
parent | d5d6d965ed4de62dc7bc4b6294fccf924e88e362 (diff) | |
download | coreutils-05fcf7df274ed69eb8cff7c29b68dd64fd0dc892.tar.xz |
(my_strftime): Some old compilers object to
'\a', so don't bother optimizing for it.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/strftime.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/strftime.c b/lib/strftime.c index 45173dce3..18977d178 100644 --- a/lib/strftime.c +++ b/lib/strftime.c @@ -493,7 +493,7 @@ my_strftime (char *s, size_t maxsize, const char *format, const struct tm *tp case '%': break; - case '\a': case '\b': case '\t': case '\n': + case '\b': case '\t': case '\n': case '\v': case '\f': case '\r': case ' ': case '!': case '"': case '#': case '&': case'\'': case '(': case ')': case '*': case '+': case ',': case '-': @@ -511,10 +511,11 @@ my_strftime (char *s, size_t maxsize, const char *format, const struct tm *tp case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': case '{': case '|': case '}': case '~': - /* The C Standard requires these 98 characters (plus '%') to + /* The C Standard requires these 97 characters (plus '%', '\a') to be in the basic execution character set. None of these characters can start a multibyte sequence, so they need - not be analyzed further. */ + not be analyzed further. Some old compilers object to + '\a', so don't bother optimizing for it. */ add (1, *p = *f); continue; |