changeset 26503:0a4e16e5eb52

(my_strftime): Some old compilers object to '\a', so don't bother optimizing for it.
author Paul Eggert <eggert@twinsun.com>
date Thu, 18 Nov 1999 23:22:16 +0000
parents 9a80d274ce46
children 0044d20f41ae
files src/strftime.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/strftime.c	Thu Nov 18 18:28:59 1999 +0000
+++ b/src/strftime.c	Thu Nov 18 23:22:16 1999 +0000
@@ -508,7 +508,7 @@
 	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 @@
 	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;