From: Paul Eggert Date: Thu, 18 Nov 1999 23:22:16 +0000 (+0000) Subject: (my_strftime): Some old compilers object to '\a', so don't bother X-Git-Tag: emacs-pretest-21.0.90~6050 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=719f38ac954f3c7f56b9cd1c8e894fd4f83f9e02;p=emacs.git (my_strftime): Some old compilers object to '\a', so don't bother optimizing for it. --- 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;