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 To: Andy Koppe Cc: Cygwin Tech List 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 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 > (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