delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/05/08:26:03

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Date: Wed, 5 Aug 2009 12:25:46 +0000 (UTC)
From: Eric Blake <ericblake AT comcast DOT net>
To: Andy Koppe <andy DOT koppe AT gmail DOT com>
Cc: Cygwin Tech List <cygwin AT cygwin DOT com>
Message-ID: <1563122350.8687431249475146514.JavaMail.root@sz0059a.emeryville.ca.mail.comcast.net>
In-Reply-To: <416096c60908041359h3b9697a2n40c82c460e2c2d8@mail.gmail.com>
Subject: Re: _setlocale_r
MIME-Version: 1.0
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

> (Alternatively, making them reentrant by making the locale settings
> part of the REENT structure might be rather useful actually, for at
> least two reasons: different threads could use different locales, and
> you could convert between different charsets using the the _r
> versions
> of the mb functions without having to switch locale all the time.)

This is the correct fix.  Besides, it paves the way towards implementing
the *_l re-entrant locale-based functions added in POSIX 2008.

But you should be asking this on the newlib list.

-- 
Eric Blake

--
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