all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Holger Arnold <holgerar@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 12392@debbugs.gnu.org
Subject: bug#12392: emacs-gtk misinterprets floating-point numbers under certain locales on openSUSE 12.2
Date: Sat, 22 Sep 2012 21:44:15 +0200	[thread overview]
Message-ID: <505E150F.6000800@gmail.com> (raw)
In-Reply-To: <831uhtlw47.fsf@gnu.org>

Eli Zaretskii wrote:
>>> 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, ...?
>
> The former, of course.
>
>> How can GCC print localized error messages, but still not accept
>> 'double x = 0,25 * 1,0;' in a C program?
>
> In our case, we are talking about two instances of output.

Should I have said: "How can GCC print localized error messages 
containing (non-localized) C statements"?  Are you seriously saying that 
you see a hard technical problem here?

>> 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?
>
> We are not talking about users, we are talking about Emacs, which is a
> computer program.  It needs to be able to differentiate between these
> two instances of output, if you want it to use different decimal
> separators in each case.

I assume that Emacs already has functions for printing and parsing Lisp 
statements.  Simply make them locale-independent.  If you have to print 
a localized string that contains a Lisp expression, insert the output of 
the Lisp printer into that string.  No Super-Turing powers required.

         Holger





  reply	other threads:[~2012-09-22 19:44 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-09  7:37 bug#12392: 24.2; emacs-gtk misinterprets floating-point numbers under certain locales on openSUSE 12.2 Achim Gratz
2012-09-09  7:43 ` Achim Gratz
2012-09-09  8:09 ` Achim Gratz
2012-09-09  8:30 ` Achim Gratz
2012-09-10 17:37   ` Jan Djärv
2012-09-10 19:00     ` Achim Gratz
2012-09-13  8:20 ` bug#12392: " Paul Eggert
2012-09-13 17:59   ` Achim Gratz
2012-09-14 15:58   ` Achim Gratz
2012-09-21  9:59   ` Holger Arnold
2012-09-22  6:19     ` Achim Gratz
2012-09-22 14:38       ` Holger Arnold
2012-09-22 15:08         ` Andreas Schwab
2012-09-22 15:49           ` Holger Arnold
2012-09-22 16:07             ` Eli Zaretskii
2012-09-22 17:04               ` Holger Arnold
2012-09-22 17:19                 ` Jan Djärv
2012-09-22 17:22                   ` Jan Djärv
2012-09-22 16:54             ` Jan Djärv
2012-09-22 16:55               ` Jan Djärv
2012-09-22 17:00                 ` Holger Arnold
2012-09-23 10:04                   ` Jan Djärv
2012-09-23 17:27                 ` Achim Gratz
2012-09-23 19:58                   ` Holger Arnold
2012-09-22 16:56               ` Holger Arnold
2012-09-22 16:02         ` Eli Zaretskii
2012-09-22 16:38           ` Holger Arnold
2012-09-22 16:41             ` Eli Zaretskii
2012-09-22 16:54               ` Holger Arnold
2012-09-22 17:10                 ` Eli Zaretskii
2012-09-22 17:18                   ` Holger Arnold
2012-09-22 19:02                     ` Eli Zaretskii
2012-09-22 19:44                       ` Holger Arnold [this message]
2012-09-22 16:36         ` Achim Gratz
2012-10-07 10:57           ` Holger Arnold
2012-09-21 20:08   ` Holger Arnold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=505E150F.6000800@gmail.com \
    --to=holgerar@gmail.com \
    --cc=12392@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.