author | Rich Felker <dalias@aerifal.cx> | 2015年06月13日 05:17:16 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015年06月13日 05:17:16 +0000 |
commit | 536c6d5a4205e2a3f161f2983ce1e0ac3082187d (patch) | |
tree | a45cf47d93d62585cd417b83bd49100edf419222 /src/stdio/fputwc.c | |
parent | f8f565df467c13248104223f99abf7f37cef7584 (diff) | |
download | musl-536c6d5a4205e2a3f161f2983ce1e0ac3082187d.tar.gz |
-rw-r--r-- | src/stdio/fputwc.c | 2 |
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); |