Ask a Question related to Ruby, Design and Development.
-
Michael Neumann #1
to_s and locales in Gtk
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
Michael Neumann Guest
-
Overloading to_s in a class of my own
I'm confused by a problem I'm having trying to overload the to_s operator so that my class will be accepted as a string where applicable. Here's a... -
Any portable ways to get a list of valid locales?
I think the question I want to ask here is: "Is there any portable way of getting a listing of valid locales on the current system?" I've been... -
sorting issue when using locales
Hi all, ever used Ruby to sort arrays of strings which contain ISO-8859-1 encoded "umlaut" characters as is typical for German text? Recently I... -
Problem with class, struct, and to_s
On Saturday, July 26, 2003, 2:54:28 AM, ts wrote: G>> irb(main):009:1> def to_s G>> irb(main):010:2> -15 G>> irb(main):011:2> end ... -
Array and Hash to_s
On Saturday, July 19, 2003, at 12:56 PM, Yukihiro Matsumoto wrote: While we're on the subject of "to_s" and similar friends, I have a question... -
Yukihiro Matsumoto #2
Re: to_s and locales in Gtk
Hi,
In message "to_s and locales in Gtk"
on 03/11/11, Michael Neumann <mneumann@ntecs.de> writes:
|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.
Yukihiro Matsumoto Guest
-
Michael Neumann #3
Re: to_s and locales in Gtk
On Tue, Nov 11, 2003 at 10:14:43PM +0900, Yukihiro Matsumoto wrote:
Thanks! That works for running the Gtk test runner.> Hi,
>
> In message "to_s and locales in Gtk"
> on 03/11/11, Michael Neumann <mneumann@ntecs.de> writes:
>
> |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.
Regards,
Michael
Michael Neumann Guest



Reply With Quote

