This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/38741] Unable to write data to wofstream
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jan 2009 09:56:48 -0000
- Subject: [Bug libstdc++/38741] Unable to write data to wofstream
- References: <bug-38741-17153@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from paolo dot carlini at oracle dot com 2009-01-09 09:56 -------
... and, by the way, exactly because your codecvt is broken - doesn't properly
convert each in-memory wchar_t to a single external char - you maintain to see
1 / 4 of the expected "Forecast" strings: actually you are seeing the expected
total number of chars but each time, each char in "Forecast" is followed by 3
'\0' chars, the in-memory last three bytes of each wchar_t of L"Forecast".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38741