From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#12392: emacs-gtk misinterprets floating-point numbers under certain locales on openSUSE 12.2 Date: Sat, 22 Sep 2012 17:08:02 +0200 Message-ID: References: <87r4qbodec.fsf@Rainer.invalid> <87zk4ifukb.fsf@Rainer.invalid> <1544800.869GeMQOQf@thinkpad.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1348326515 10921 80.91.229.3 (22 Sep 2012 15:08:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2012 15:08:35 +0000 (UTC) Cc: 12392@debbugs.gnu.org To: Holger Arnold Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 22 17:08:40 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TFRJr-0000CS-BV for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2012 17:08:35 +0200 Original-Received: from localhost ([::1]:45099 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFRJl-0005NC-Q8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2012 11:08:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFRJg-0005Ls-3r for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 11:08:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFRJa-0006A5-PV for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 11:08:24 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFRJa-0006A1-MC for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 11:08:18 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TFRLF-0006Eq-IK for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 11:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Sep 2012 15:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12392 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 12392-submit@debbugs.gnu.org id=B12392.134832659823966 (code B ref 12392); Sat, 22 Sep 2012 15:10:01 +0000 Original-Received: (at 12392) by debbugs.gnu.org; 22 Sep 2012 15:09:58 +0000 Original-Received: from localhost ([127.0.0.1]:49225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFRL8-0006ER-5u for submit@debbugs.gnu.org; Sat, 22 Sep 2012 11:09:58 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:47587) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFRL2-0006EG-Q4 for 12392@debbugs.gnu.org; Sat, 22 Sep 2012 11:09:53 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3XPFRS4fTVz4KK7T; Sat, 22 Sep 2012 17:08:04 +0200 (CEST) X-Auth-Info: w4+tjpbGS9HIMWEsD3qqM3ctNqzXBKczi+mia7gcDIM= Original-Received: from igel.home (ppp-93-104-152-244.dynamic.mnet-online.de [93.104.152.244]) by mail.mnet-online.de (Postfix) with ESMTPA id 3XPFRS2MwyzbbsN; Sat, 22 Sep 2012 17:08:04 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id 8F554CA2A2; Sat, 22 Sep 2012 17:08:03 +0200 (CEST) X-Yow: I'm mentally OVERDRAWN! What's that SIGNPOST up ahead? Where's ROD STERLING when you really need him? In-Reply-To: <1544800.869GeMQOQf@thinkpad.home> (Holger Arnold's message of "Sat, 22 Sep 2012 16:38:22 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64744 Archived-At: Holger Arnold writes: > As to whether calling setlocale(LC_ALL, "") in a library is a bug, what would > you expect a library that wants to provide localized messages to do? Changing > the locale before and after each call? This would be racy in a multi-threaded > program. There is a good reason why the C standard says "The implementation shall behave as if no library function calls the setlocale function." Extending that to other libraries improves the quality of implementation. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."