This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/15733] getline(wifstream, wstring) seems to be broken with UTF-8


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]