how to set locale with C++

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Feb 9 15:27:00 GMT 2012


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 std::locale
> implementation.  Mainly because the functions that change the locale
> affect the whole process.  It is necessary to have at least per thread
> locale for std::locale to be implementable; it is better to have some
> sort of locale structure to pass around.  AFAIK this can be
> implemented using functions provided by xlocale.h (MacOS X, [1]).

I'd prefer to have per-thread locale support as required by SUSv4.
However, it's a lot of work and http://cygwin.com/acronyms/#SHTDI


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list