summaryrefslogtreecommitdiff
path: root/src/strftime.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@twinsun.com>1999-11-18 23:22:16 +0000
committerPaul Eggert <eggert@twinsun.com>1999-11-18 23:22:16 +0000
commitd3d7e3ecb1ca857cb2063b63a89622d3ece71991 (patch)
tree80298587278a841ef04560e9072e46a604611c8c /src/strftime.c
parent707e4a9691718e11d4cd7fe6b241d9fd639b097a (diff)
downloademacs-d3d7e3ecb1ca857cb2063b63a89622d3ece71991.tar.gz
(my_strftime): Some old compilers object to '\a', so don't bother
optimizing for it.
Diffstat (limited to 'src/strftime.c')
-rw-r--r--src/strftime.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/strftime.c b/src/strftime.c
index b89d3243624..00d50133b35 100644
--- a/src/strftime.c
+++ b/src/strftime.c
@@ -508,7 +508,7 @@ my_strftime (s, maxsize, format, tp ut_argument)
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 '-':
@@ -526,10 +526,11 @@ my_strftime (s, maxsize, format, tp ut_argument)
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;