From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii 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 20:10:52 +0300 Message-ID: <834nmqkmoz.fsf@gnu.org> References: <87r4qbodec.fsf@Rainer.invalid> <1780233.tNiCP7U4om@thinkpad.home> <836276ko1r.fsf@gnu.org> <1850806.rhTqIQiGZd@thinkpad.home> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1348333890 499 80.91.229.3 (22 Sep 2012 17:11:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2012 17:11:30 +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 19:11:31 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 1TFTEm-0006Xa-E1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2012 19:11:28 +0200 Original-Received: from localhost ([::1]:57431 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFTEh-0005JK-Gi for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2012 13:11:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFTEe-0005JC-8U for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 13:11:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFTEd-0008CF-81 for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 13:11:20 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFTEd-0008Bf-4W for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 13:11:19 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TFTGI-0001UZ-3Y for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 13:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Sep 2012 17:13: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 Original-Received: via spool by 12392-submit@debbugs.gnu.org id=B12392.13483339715719 (code B ref 12392); Sat, 22 Sep 2012 17:13:02 +0000 Original-Received: (at 12392) by debbugs.gnu.org; 22 Sep 2012 17:12:51 +0000 Original-Received: from localhost ([127.0.0.1]:49425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFTG6-0001UB-Kw for submit@debbugs.gnu.org; Sat, 22 Sep 2012 13:12:51 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:57464) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFTG4-0001U2-OL for 12392@debbugs.gnu.org; Sat, 22 Sep 2012 13:12:50 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MAR00F00GTPE800@a-mtaout21.012.net.il> for 12392@debbugs.gnu.org; Sat, 22 Sep 2012 20:11:03 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MAR00F22H2F4390@a-mtaout21.012.net.il>; Sat, 22 Sep 2012 20:11:03 +0300 (IDT) In-reply-to: <1850806.rhTqIQiGZd@thinkpad.home> X-012-Sender: halo1@inter.net.il 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:64765 Archived-At: > From: Holger Arnold > Cc: 12392@debbugs.gnu.org > Date: Sat, 22 Sep 2012 18:54:20 +0200 > > Eli Zaretskii wrote: > > > You are entering Lisp code here. Would you agree that this qualifies as > > > program code? > > > > Then what is "user interface text" you were talking about above? Does > > user input qualify? > > I admit that for a program like Emacs, this distinction is not always easy to > make because program code is part of its user interface. But I think that > most cases can be decided using common sense. Does the Emacs Lisp language > contain localized numbers? No, it does not. Hence, (* 0,25 1,3) is not a > valid Lisp expression, even undder a German locale. But when Emacs prints a > message like "Your disk is 23.4% full." in the local language, then I would > also expect the number 23.4 to be localized. How can Emacs do both? How can it display "4.0" for the result of '(* 2.0 2.0)', but "23,4%" in a message like "Your disk is 23.4% full."? > However, I have yet to see a localized message from Emacs. I think error messages that include text which comes from strerror are another example, in addition to strftime I mentioned earlier.