diff options
Diffstat (limited to 'src/stdio/fputws.c')
-rw-r--r-- | src/stdio/fputws.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/fputws.c b/src/stdio/fputws.c index 5723cbcd..317d65f1 100644 --- a/src/stdio/fputws.c +++ b/src/stdio/fputws.c @@ -8,7 +8,7 @@ int fputws(const wchar_t *restrict ws, FILE *restrict f) FLOCK(f); - f->mode |= f->mode+1; + fwide(f, 1); while (ws && (l = wcsrtombs((void *)buf, (void*)&ws, sizeof buf, 0))+1 > 1) if (__fwritex(buf, l, f) < l) { |