# HG changeset patch # User Jason Rumney # Date 1016060505 0 # Node ID 38d2cf408e278aa4991a87fde489b23ace6b58fb # Parent c5ea7e769ffdf64d83e02a66508858a06cdea61e (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX and %OX when underlying strftime does not. diff -r c5ea7e769ffd -r 38d2cf408e27 src/strftime.c --- a/src/strftime.c Wed Mar 13 18:00:48 2002 +0000 +++ b/src/strftime.c Wed Mar 13 23:01:45 2002 +0000 @@ -834,6 +834,13 @@ 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;