This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: Localization: example from document page doesn't work for latin characters ?


It worked!! :D, at least in C++, but not in C. The output became:

$ g++ -o test test.cc && ./test
C++ version:
Órfão
ÓRFÃO
órfão

C version:
Órfão
ÓRFãO
Órfão

thanks a lot!

jan


Paolo Carlini wrote:

>Paolo Carlini wrote:
>
>  
>
>>                                                               Really,
>>it's just matter of imbuing and then everything should work immediately.
>> 
>>
>>    
>>
>I.e., adding, at the beginning of main two lines like:
>
>  ios::sync_with_stdio(false);
>  wcout.imbue(locale("en_US.UTF-8"));
>
>should work to enable conversion to external en_US.UTF-8.
>
>Paolo.
>  
>


	

	
		
_______________________________________________________ 
Yahoo! doce lar. Faça do Yahoo! sua homepage. 
http://br.yahoo.com/homepageset.html 


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