[Bug libstdc++/15733] getline(wifstream, wstring) seems to be broken with UTF-8
ahlgren at lysator dot liu dot se
gcc-bugzilla@gcc.gnu.org
Mon May 31 15:12:00 GMT 2004
------- Additional Comments From ahlgren at lysator dot liu dot se 2004-05-30 14:05 -------
(In reply to comment #6)
> (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.
Oh, and test.txt is sent as an attachment in my first reply.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15733
More information about the Gcc-bugs
mailing list