diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-09-18 15:47:45 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-09-18 15:47:45 +0000 |
commit | 3a18dfabdca43386e250acc39e33c15b0fe7da46 (patch) | |
tree | b4cb8dc89d9a191deda4bb2515343bab992e5316 /mdoc_validate.c | |
parent | 8a61fa80efe1c661e0711f10bfc0cca6bad267fa (diff) | |
download | mandoc-3a18dfabdca43386e250acc39e33c15b0fe7da46.tar.gz |
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_validate.c')
0 files changed, 0 insertions, 0 deletions