diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/strftime.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; |