From: "Iñaki Baz Castillo" Date: 2009-08-03T00:12:21+09:00 Subject: Re: qtruby overrides "to_s" depending on user's LOCALES El Domingo, 2 de Agosto de 2009, Stefano Crocco escribió: > You can try redefining the Float#to_s method after creating the > application, using the code I suggested inside it. This works in a simple > example, but I'm not sure what would happen in a real situation. > > require 'Qt4' > > a = Qt::Application.new [] > > class Float > def to_s > l = Qt::Locale.c > l.number_options = Qt::Locale::OmitGroupSeparator > l.to_string(self) > end > end > x = 1234.567 > puts x Thanks, I already saw this solution in the RubyForge thread. However I'm afraid of what could happen if this issue affects to more Ruby classes than just Float. But it seems the bets solution (even if it's obviously a painful hack XD). Thanks a lot. -- Iñaki Baz Castillo