Subject: Re: _setlocale_r
From: Eric Blake <[email-masked]>
To: Andy Koppe <[email-masked]>
Cc: Cygwin Tech List <[email-masked]>
Date: Wed, 5 Aug 2009 12:25:46 +0000 (UTC)
List-Id: <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