From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Achim Gratz Newsgroups: gmane.emacs.bugs Subject: bug#12392: emacs-gtk misinterprets floating-point numbers under certain locales on openSUSE 12.2 Date: Fri, 14 Sep 2012 17:58:07 +0200 Organization: Linux Private Site Message-ID: <878vccvbow.fsf@Rainer.invalid> References: <87r4qbodec.fsf@Rainer.invalid> <5051974D.2020106@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1347638357 24287 80.91.229.3 (14 Sep 2012 15:59:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 15:59:17 +0000 (UTC) To: 12392@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 14 17:59:21 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 1TCYIa-00078y-2Q for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 17:59:20 +0200 Original-Received: from localhost ([::1]:59076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCYIW-0006RY-DG for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 11:59:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCYIO-0006RI-S3 for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 11:59:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCYIK-0002cW-Ka for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 11:59:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52695) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCYIK-0002cS-HO for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 11:59:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TCYJG-0004NN-6g for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 12:00:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87r4qbodec.fsf@Rainer.invalid> Resent-From: Achim Gratz Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Sep 2012 16:00:02 +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 X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134763837816763 (code B ref -1); Fri, 14 Sep 2012 16:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Sep 2012 15:59:38 +0000 Original-Received: from localhost ([127.0.0.1]:34008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCYIs-0004MJ-Bv for submit@debbugs.gnu.org; Fri, 14 Sep 2012 11:59:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57552) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCYIp-0004MB-GV for submit@debbugs.gnu.org; Fri, 14 Sep 2012 11:59:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCYHo-0002WE-2x for submit@debbugs.gnu.org; Fri, 14 Sep 2012 11:58:37 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:40359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCYHn-0002WA-Vp for submit@debbugs.gnu.org; Fri, 14 Sep 2012 11:58:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCYHi-0006Ns-9M for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 11:58:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCYHg-0002Lv-RR for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 11:58:26 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:54886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCYHg-0002Li-KV for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 11:58:24 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TCYHh-0006aH-RT for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 17:58:25 +0200 Original-Received: from pd9eb2b92.dip.t-dialin.net ([217.235.43.146]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Sep 2012 17:58:25 +0200 Original-Received: from Stromeko by pd9eb2b92.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Sep 2012 17:58:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb2b92.dip.t-dialin.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:QpWdN+If3oT5+ccqRWuLdbmlSCM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:64292 Archived-At: Paul Eggert writes: > This particular problem looks like it's probably an OpenSUSE bug, but > in general one cannot combine LC_NUMERIC=C with random encodings in > LC_CTYPE. It's safer if Emacs uses the C locale when parsing floating > point numbers. Here's a proposed patch to do that. Can you apply > this against the Emacs trunk and give it a try? Todays' trunk builds and I can apply your patch (sans the ChangeLog), but the buggy behaviour doesn't change. Is there a way to check if the patch has been applied correctly? Otherwise I'd say that your assertion that there's a bug in openSUSE is correct, but I still don't understand why and how it ignores an explicit locale setting… Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada