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 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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