From 984c25b74da085c6ae6b44a87bbd5f8afc9be331 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 2 Jul 2014 12:09:48 -0400 Subject: fix failure of wide printf/scanf functions to set wide orientation in some cases, these functions internally call a byte-based input or output function before calling getwc/putwc, so they cannot rely on the latter to set the orientation. --- src/stdio/vfwprintf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/stdio/vfwprintf.c') diff --git a/src/stdio/vfwprintf.c b/src/stdio/vfwprintf.c index 984ff7b7..c6400591 100644 --- a/src/stdio/vfwprintf.c +++ b/src/stdio/vfwprintf.c @@ -355,6 +355,7 @@ int vfwprintf(FILE *restrict f, const wchar_t *restrict fmt, va_list ap) } FLOCK(f); + f->mode |= f->mode+1; ret = wprintf_core(f, fmt, &ap2, nl_arg, nl_type); FUNLOCK(f); va_end(ap2); -- cgit v1.2.3-60-g2f50