From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23188 invoked by alias); 14 May 2013 21:50:43 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 23143 invoked by uid 48); 14 May 2013 21:50:39 -0000 From: "roland.mainz at nrubsig dot org" To: glibc-bugs@sourceware.org Subject: [Bug libc/15459] RFE: Add |localeconv_l()| to allow porting of FreeBSD/OSX applications... Date: Tue, 14 May 2013 21:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: roland.mainz at nrubsig dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-05/txt/msg00107.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15459 --- Comment #6 from Roland Mainz 2013-05-14 21:50:37 UTC --- Erm... we're talking about a shared library here. Shared libraries are usually not supposed to change the thread-local or global variables of a caller, even temporary (unless documented and _needed_), because (for example) a consumer calls your library, the library switches thread-local locale using |uselocale()| and then something like a signal handler setup by the caller gets executed you're ending-up running it with the "wrong" locale... ... and don't get me started with the performance implications of wrapping _every_ library call with |saved_locale=uselocale(mylocale); ... ; (void)uselocale(saved_locale);| -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.