Commit 6e396aa6 authored by Jason Rumney's avatar Jason Rumney
Browse files

(my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX

and %OX when underlying strftime does not.
parent c668cdd0
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment