[Bug libstdc++/15733] getline(wifstream, wstring) seems to be broken with UTF-8
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Mon May 31 15:34:00 GMT 2004
------- Additional Comments From pcarlini at suse dot de 2004-05-30 14:10 -------
To be clear: the predefined streams 'wcin', 'wcout', etc, are synced with
stdio by default and for this reason *cannot* do any encoding/decoding.
In order to obtain sensible results you either need to use always wfstreams
(in input and output) or call 'std::ios::sync_with_stdio(false);' before
doing any I/O.
If wcin appear to work is only because is *not* doing any conversion.
You need to imbue loc to the ifstream fin!
Do things work in this case?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15733
More information about the Gcc-bugs
mailing list