From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Holger Arnold 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:49:33 +0200 Message-ID: <2377593.YnO2rOpBpl@thinkpad.home> References: <87r4qbodec.fsf@Rainer.invalid> <1544800.869GeMQOQf@thinkpad.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: ger.gmane.org 1348329025 29518 80.91.229.3 (22 Sep 2012 15:50:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2012 15:50:25 +0000 (UTC) Cc: Achim Gratz , 12392@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 22 17:50:29 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 1TFRyM-0005tP-WD for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2012 17:50:27 +0200 Original-Received: from localhost ([::1]:60050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFRyI-0000hJ-Ct for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2012 11:50:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFRyG-0000hE-6H for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 11:50:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFRyF-0006Co-3j for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 11:50:20 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFRyE-0006Ca-VT for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 11:50:19 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TFRzt-0007FY-Rv for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 11:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Holger Arnold Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Sep 2012 15:52: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.134832908327821 (code B ref 12392); Sat, 22 Sep 2012 15:52:01 +0000 Original-Received: (at 12392) by debbugs.gnu.org; 22 Sep 2012 15:51:23 +0000 Original-Received: from localhost ([127.0.0.1]:49343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFRzG-0007Ef-2Q for submit@debbugs.gnu.org; Sat, 22 Sep 2012 11:51:22 -0400 Original-Received: from mail-bk0-f44.google.com ([209.85.214.44]:35301) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFRzF-0007EZ-1U for 12392@debbugs.gnu.org; Sat, 22 Sep 2012 11:51:21 -0400 Original-Received: by bkty12 with SMTP id y12so2238395bkt.3 for <12392@debbugs.gnu.org>; Sat, 22 Sep 2012 08:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding:content-type; bh=XjwHAzlmrieLP44MzOmGSVjhmNVk5IEKp4IUo9encOk=; b=DJYZW1B6qK7bcqsqIvwIbti9y3ZS7HmVSVVlRPbgcc0EQGLeFSZKPdS+9tuSUC0r4j DxbTF7qD+63MEnx1y4gextS7Hju6HmUKeKXugb6aoMET/cJuJLdAdrwS4JCNdYj8wf75 w+nNEWoVseOCvk1yQM3+GHw4c9CUPHYdcdi6zR1M1U9eO86gL91S/jxbogepRTSEbX9y a/+/x2WSVC96537LrFzKl67Bs7E/EGNKbRftOvXNG1MDiM5I9XfWujze0/3O2moskqvQ C52n+XyVmon4qslyxY8j2zSRykXEI8Opat94Bb624DKeeU/CNiXpIqqrXY5MYV1uECzZ 0+OA== Original-Received: by 10.204.156.202 with SMTP id y10mr3332456bkw.6.1348328976970; Sat, 22 Sep 2012 08:49:36 -0700 (PDT) Original-Received: from thinkpad.home (77-64-254-200.dynamic.primacom.net. [77.64.254.200]) by mx.google.com with ESMTPS id a17sm7789411bkw.5.2012.09.22.08.49.35 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 22 Sep 2012 08:49:36 -0700 (PDT) User-Agent: KMail/4.9.1 (Linux/3.5.4-1-default; KDE/4.9.1; i686; ; ) In-Reply-To: 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:64752 Archived-At: Andreas Schwab wrote: > 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. Well, I didn't consider calling setlocale() in GStreamer a great idea, but you and Achim are right: doing so is a bug because it's racy. Nevertheless, setting LC_NUMERIC to "C" behind GTK's back isn't correct either. But in which places is Emacs using localized strings at all? Holger