X-Recipient: archive-cygwin@delorie.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@comcast.net>
To: Andy Koppe <andy.koppe@gmail.com>
Cc: Cygwin Tech List <cygwin@cygwin.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
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

