(my_strftime): Some old compilers object to
authorJim Meyering <jim@meyering.net>
Sun, 2 Jan 2000 07:09:54 +0000 (07:09 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 2 Jan 2000 07:09:54 +0000 (07:09 +0000)
'\a', so don't bother optimizing for it.

lib/strftime.c

index 45173dce35b7d3a0fa7e9fb04850f7743b16b7cc..18977d17822e0dbb76717a17d4b6722050e10e19 100644 (file)
@@ -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;