------- Comment #15 from luca dot barbieri at gmail dot com  2010-04-08 02:33 
-------
Why can't wcout simply convert to the selected encoding, and append the results
to the cout buffer, as if the converted string had been directly output to
cout?

I'm not sure about the implementation details, but I fail to see how anything
could prevent adopting this rather obvious solution.

Of course, if cout is in the middle of the byte sequence of a character, this
will not result in sensible output, but that is user error and I fail to see
how such use could be made meaningful.

BTW, doesn't cout share the stdout buffer via the GNU libio FILE/iostream
sharing mechanism, making sync_with_stdio do nothing anyway?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35353

Reply via email to