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 19:18:18 +0200 Message-ID: <2199759.nmHto3ACll@thinkpad.home> References: <87r4qbodec.fsf@Rainer.invalid> <1850806.rhTqIQiGZd@thinkpad.home> <834nmqkmoz.fsf@gnu.org> 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 1348334364 4203 80.91.229.3 (22 Sep 2012 17:19:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2012 17:19:24 +0000 (UTC) Cc: 12392@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 22 19:19:28 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 1TFTMV-00045g-7W for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2012 19:19:27 +0200 Original-Received: from localhost ([::1]:58031 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFTMQ-00066B-KM for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2012 13:19:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFTMO-00065u-6C for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 13:19:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFTMN-0001z3-3P for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 13:19:20 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFTMM-0001yx-Vg for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 13:19:19 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TFTO2-0001fq-7p for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 13:21:02 -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 17:21: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.13483344086370 (code B ref 12392); Sat, 22 Sep 2012 17:21:02 +0000 Original-Received: (at 12392) by debbugs.gnu.org; 22 Sep 2012 17:20:08 +0000 Original-Received: from localhost ([127.0.0.1]:49435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFTN9-0001eg-Nq for submit@debbugs.gnu.org; Sat, 22 Sep 2012 13:20:08 -0400 Original-Received: from mail-bk0-f44.google.com ([209.85.214.44]:65035) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFTN7-0001eZ-Tj for 12392@debbugs.gnu.org; Sat, 22 Sep 2012 13:20:06 -0400 Original-Received: by bkty12 with SMTP id y12so2263958bkt.3 for <12392@debbugs.gnu.org>; Sat, 22 Sep 2012 10:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.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=9UfCfL+LmEp2dgJOB43Q2TYiiw54c4qFOjQllThVu6M=; b=kWfkfP+qF7th4qvbqOH+gzKx/Ohn65gu6xX9Piwm+ekvhGrWeIFopi5BQT5+c54ICH joCHneufCDt10CVLz+DsCjtOqZZIdS86JOZGnolDOFyCoXvngNf90Z9Je3cSFxHDy96T 26eq6+fUKk+Vp0s5bZWNOVG0aBVbCVQwC8wgUCTmGMGHG4Jb83bVVuLNCB/zyvNc7Fld igYVVOhQQ//aOucrwbo+u0Kqd4wGSiFr2T9W1+BB1fPKhEHdQj1HvdyG9eY05Z6YlsUa osNp5KsToh5FrQzT1oRv7cW8IcJVj0j1pXrUXzeWLs+dFcyuWRJjA7xnpqwvwIYcSIFh GRnA== Original-Received: by 10.204.9.3 with SMTP id j3mr17706bkj.15.1348334301436; Sat, 22 Sep 2012 10:18:21 -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 he16sm759621bkc.7.2012.09.22.10.18.20 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 22 Sep 2012 10:18:20 -0700 (PDT) User-Agent: KMail/4.9.1 (Linux/3.5.4-1-default; KDE/4.9.1; i686; ; ) In-Reply-To: <834nmqkmoz.fsf@gnu.org> 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:64767 Archived-At: Eli Zaretskii wrote: > > 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."? What do you mean by "how"? Technically, philosophically, ...? How can GCC print localized error messages, but still not accept 'double x = 0,25 * 1,0;' in a C program? I assume that most Emacs users can tell whether they are interacting with the Lisp interpreter or the "other" user interface. So, what's the problem? Holger