Bryan Kadzban пишет:
Why not just use getwc(), and use wchar_t's in all cases?

You'd have to modify the output to convert back to multibyte characters
(specifically, LC_CTYPE-encoding characters; they may not actually have
more than one byte per character), but it looks like add_wch does that
already.



"Just after a stream is associated with a pipe by the popen() function, the stream is byte-oriented." getwc() works only on wide-oriented streams

--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to