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 ?


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.


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