delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/09/10:27:20

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 9 Feb 2012 16:26:34 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: how to set locale with C++
Message-ID: <20120209152634.GM23330@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4F33AA60 DOT 6080704 AT gmail DOT com> <20120209123738 DOT GG23330 AT calimero DOT vinschen DOT de> <4F33D71A DOT 9040105 AT gmail DOT com> <CAKw7uVg1U06aoCL9xb-x27ztFmOiwACEAf0G55w0V3xzoH5ZRg AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAKw7uVg1U06aoCL9xb-x27ztFmOiwACEAf0G55w0V3xzoH5ZRg@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019