Numeric locale

  • Thread starter Bertram Scharpf
  • Start date
B

Bertram Scharpf

Hi,

the German decimal separator is ",". So pi will be
represented by "3,1415" rather than "3.1415". As far as I
know this behaviour is controlled by the LC_NUMERIC
environment variable.

Now, I notice the following on my system: When I'm in editor
Vim I may say in command mode:

:ruby puts 4.56
:!ruby -e 'puts 4.56'

The former is the built-in ruby interface, the latter a call
to a child process and will show thats standard output.

But I happen to encounter two different results. The
built-in version gives "4,56"; the child process prints
"4.56".

How can I make the normal Ruby process print a comma, too?

Thanks in advance

Bertram
 
B

Bertram Scharpf

Hi,

Am Montag, 04. Jun 2007, 23:48:25 +0900 schrieb Yukihiro Matsumoto:
In message "Re: Numeric locale"

|How can I make the normal Ruby process print a comma, too?

I'm sorry but LC_NUMERIC is disabled at the current level of
implementation, since it causes more headache than merit,
[...]

Then the Vim behaviour probably is the bug. Thanks anyway;
now I know about it.

Bertram
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top