fix idiom for setting stdio stream orientation to wide
[musl] / src / stdio / vfwscanf.c
index ac5c2c2..223aad4 100644 (file)
@@ -104,7 +104,7 @@ int vfwscanf(FILE *restrict f, const wchar_t *restrict fmt, va_list ap)
 
        FLOCK(f);
 
-       f->mode |= f->mode+1;
+       fwide(f, 1);
 
        for (p=fmt; *p; p++) {