diff options
Diffstat (limited to 'src/stdio/fputwc.c')
-rw-r--r-- | src/stdio/fputwc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/fputwc.c b/src/stdio/fputwc.c index 7b621dd2..1bf165bf 100644 --- a/src/stdio/fputwc.c +++ b/src/stdio/fputwc.c @@ -8,7 +8,7 @@ wint_t __fputwc_unlocked(wchar_t c, FILE *f) char mbc[MB_LEN_MAX]; int l; - f->mode |= f->mode+1; + if (f->mode <= 0) fwide(f, 1); if (isascii(c)) { c = putc_unlocked(c, f); |