From 4c48501ee2a022a0dd207a2db4d346a00f9927a1 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 2 Jul 2014 21:46:41 -0400 Subject: properly pass current locale to *_l functions when used internally this change is presently non-functional since the callees do not yet use their locale argument for anything. --- src/time/wcsftime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/time/wcsftime.c') diff --git a/src/time/wcsftime.c b/src/time/wcsftime.c index 8d2a2ebc..638e64f6 100644 --- a/src/time/wcsftime.c +++ b/src/time/wcsftime.c @@ -1,6 +1,7 @@ #include #include #include +#include "locale_impl.h" #include "libc.h" const char *__strftime_fmt_1(char (*s)[100], size_t *l, int f, const struct tm *tm, locale_t loc); @@ -64,7 +65,7 @@ size_t __wcsftime_l(wchar_t *restrict s, size_t n, const wchar_t *restrict f, co size_t wcsftime(wchar_t *restrict wcs, size_t n, const wchar_t *restrict f, const struct tm *restrict tm) { - return __wcsftime_l(wcs, n, f, tm, 0); + return __wcsftime_l(wcs, n, f, tm, CURRENT_LOCALE); } weak_alias(__wcsftime_l, wcsftime_l); -- cgit v1.2.3-70-g09d2