to_s and locales in Gtk

M

Michael Neumann

Hi,

Using the Gtk test-runner some very strange errors happened during
running the xmlrpc4r tests.

Indeed, xmlrpc4r and Gtk does not work together, as Gtk localizes the
output of the #to_s method, which results in my case that 3.4.to_s gives
"3,4" instead of the "3.4" I expected.

So my question: Should I use #to_str in my xmlrpc4r library to convert
floats into strings (this works!)? Or is this a bug or misfeature of
Gtk?

Regards,

Michael
 
Y

Yukihiro Matsumoto

Hi,

In message "to_s and locales in Gtk"

|Using the Gtk test-runner some very strange errors happened during
|running the xmlrpc4r tests.
|
|Indeed, xmlrpc4r and Gtk does not work together, as Gtk localizes the
|output of the #to_s method, which results in my case that 3.4.to_s gives
|"3,4" instead of the "3.4" I expected.

Situation might change when you set LC_NUMERIC environment variable to
"C". I really really hate "." and "," decimal point confusion.

matz.
 
M

Michael Neumann

Hi,

In message "to_s and locales in Gtk"

|Using the Gtk test-runner some very strange errors happened during
|running the xmlrpc4r tests.
|
|Indeed, xmlrpc4r and Gtk does not work together, as Gtk localizes the
|output of the #to_s method, which results in my case that 3.4.to_s gives
|"3,4" instead of the "3.4" I expected.

Situation might change when you set LC_NUMERIC environment variable to
"C". I really really hate "." and "," decimal point confusion.

Thanks! That works for running the Gtk test runner.

Regards,

Michael
 

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

Forum statistics

Threads
474,139
Messages
2,570,805
Members
47,356
Latest member
Tommyhotly

Latest Threads

Top