From: Jason Rumney Date: Wed, 13 Mar 2002 23:01:45 +0000 (+0000) Subject: (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX X-Git-Tag: ttn-vms-21-2-B4~16188 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6e396aa6460ca9ad8909d3b91f18c06b777240e3;p=emacs.git (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX and %OX when underlying strftime does not. --- diff --git a/src/strftime.c b/src/strftime.c index 789e7ae8e91..e7a87a9bf8c 100644 --- a/src/strftime.c +++ b/src/strftime.c @@ -834,6 +834,13 @@ my_strftime (s, maxsize, format, tp ut_argument) size_t strftime (); # endif +#ifdef STRFTIME_NO_POSIX2 + /* Some system libraries do not support the POSIX.2 extensions. + In those cases, convert %h to %b, and strip modifiers. */ + modifier = 0; + if (format_char == 'h') + format_char = 'b'; +#endif *u++ = '%'; if (modifier != 0) *u++ = modifier;