diff options
author | 2016-09-18 15:47:45 +0000 | |
---|---|---|
committer | 2016-09-18 15:47:45 +0000 | |
commit | 8c879d70b7dcf90f795a9288b45997e4d1decaf6 (patch) | |
tree | 7b2283861453d90ca51a963209c752c137d6b59b /mdoc.c | |
parent | 3e60e11433f93686186391d27f5b2c8104dac503 (diff) | |
download | mandoc-8c879d70b7dcf90f795a9288b45997e4d1decaf6.tar.gz mandoc-8c879d70b7dcf90f795a9288b45997e4d1decaf6.tar.zst mandoc-8c879d70b7dcf90f795a9288b45997e4d1decaf6.zip |
We cannot use fputs(3) in passthrough() because the stdout stream
might be in stdio wide orientation due to prior formatting of an
unformatted manual in man -aTutf8 mode. So for now, use fflush(3)
followed by unbuffered write(2) instead. Fixes output corruption
on glibc discovered on Linux while testing a diff to fix a loosely
related bug reported by <jmates at ee dot washington dot edu>.
I detest the concept of stdio stream orientation. One day, i will
rewrite term_ascii.c to always use narrow streams, even in UTF-8
output mode. But that's too much work for today.
Diffstat (limited to 'mdoc.c')
0 files changed, 0 insertions, 0 deletions