This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/15733] getline(wifstream, wstring) seems to be broken with UTF-8
- From: "ahlgren at lysator dot liu dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 May 2004 14:04:26 -0000
- Subject: [Bug libstdc++/15733] getline(wifstream, wstring) seems to be broken with UTF-8
- References: <20040530135122.15733.ahlgren@lysator.liu.se>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ahlgren at lysator dot liu dot se 2004-05-30 14:04 -------
(In reply to comment #5)
> Strictly speaking, without 'test.txt' we cannot reproduce the PR and cannot
do
> much about it.
>
> However, you are reporting that things work ok with 'fin', *not* with 'wcin',
> right? This is expected, since, 'wcin' and the other predefined streams are
> by default synched with stdio and *cannot* support encoding and decoding.
>
No it's the other way around. It works fin with 'wcin', but not with 'fin'. fin
doesn't recognize the the 'ö' in 'smörgåsbord' as a valid character, while wcin
does.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15733