Re: how to set locale with C++

2012-02-09 Thread Corinna Vinschen
On Feb 9 16:22, Václav Zeman wrote: > On 9 February 2012 15:24, marco atzeri wrote: > > it could be related to libstdc++ built with a different > > --enable-clocale option ? > The problem is that Cygwin/newlib does not have good enough locale > support. C99 locale support is not good enough for s

Re: how to set locale with C++

2012-02-09 Thread Václav Zeman
On 9 February 2012 15:24, marco atzeri wrote: > On 2/9/2012 1:37 PM, Corinna Vinschen wrote: >> >> On Feb  9 12:13, marco atzeri wrote: >>> >>> Attached a small example taken from Bruce Eckel Thinking in C++ >>> >>> On cygwin both this call >>> >>>   cout.imbue(locale("en_US.UTF-8")); >>> >>>   cou

Re: how to set locale with C++

2012-02-09 Thread marco atzeri
On 2/9/2012 1:37 PM, Corinna Vinschen wrote: On Feb 9 12:13, marco atzeri wrote: Attached a small example taken from Bruce Eckel Thinking in C++ On cygwin both this call cout.imbue(locale("en_US.UTF-8")); cout.imbue(locale("fr_FR.UTF-8")); raise exception "terminate called after thro

Re: how to set locale with C++

2012-02-09 Thread Corinna Vinschen
On Feb 9 12:13, marco atzeri wrote: > Attached a small example taken from Bruce Eckel Thinking in C++ > > On cygwin both this call > > cout.imbue(locale("en_US.UTF-8")); > > cout.imbue(locale("fr_FR.UTF-8")); > > raise exception > > "terminate called after throwing an instance of 'std::ru

Re: how to set locale with C++

2012-02-09 Thread Václav Zeman
On 9 February 2012 12:13, marco atzeri wrote: > Attached a small example taken from Bruce Eckel Thinking in C++ > > On cygwin both this call > >  cout.imbue(locale("en_US.UTF-8")); > >  cout.imbue(locale("fr_FR.UTF-8")); > > raise exception > > "terminate called after throwing an instance of 'std::

how to set locale with C++

2012-02-09 Thread marco atzeri
Attached a small example taken from Bruce Eckel Thinking in C++ On cygwin both this call cout.imbue(locale("en_US.UTF-8")); cout.imbue(locale("fr_FR.UTF-8")); raise exception "terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale