------- Comment #1 from pinskia at gcc dot gnu dot org 2009-01-06 20:23 ------- You did not supply a full testcase so it is hard to tell what is going on. Can you produce a short testcase which shows the problem. It might be because the wide character is an invalid character. Since you are shifting the character by 16, I would almost say this is always going to be an invalid character.
If str is already a wstring, then str[i] will already be a wchar_t and you don't have to shift the value. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |normal Status|UNCONFIRMED |WAITING Component|c++ |libstdc++ Summary|Unable to write data to |Unable to write data to |wofstream |wofstream http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38741