diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/mingw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/mingw.c b/win32/mingw.c index afcb6c6d2..a55fb4f40 100644 --- a/win32/mingw.c +++ b/win32/mingw.c | |||
@@ -905,6 +905,11 @@ size_t mingw_strftime(char *buf, size_t max, const char *format, const struct tm | |||
905 | t = newfmt + m + 1; | 905 | t = newfmt + m + 1; |
906 | fmt = newfmt; | 906 | fmt = newfmt; |
907 | } | 907 | } |
908 | else if ( t[1] == '-' && t[2] != '\0' && | ||
909 | strchr("dHIjmMSUwWyY", t[2]) ) { | ||
910 | /* Microsoft uses '#' rather than '-' to remove padding */ | ||
911 | t[1] = '#'; | ||
912 | } | ||
908 | else if ( t[1] != '\0' ) { | 913 | else if ( t[1] != '\0' ) { |
909 | ++t; | 914 | ++t; |
910 | } | 915 | } |