[Kde-bindings] Don´t override Float.to_s method
Richard Dale
rdale at foton.es
Tue Jan 19 13:59:28 UTC 2010
On Tuesday 19 January 2010 01:53:47 pm Nicolas Mosconi wrote:
> Override the method Float.to_s in qt-ruby causes several problems in
> locales where the comma is used as decimal separator.
> For example: activerecord generates queries like this : SELECT * FROM
> people WHERE weigh < 80,5
Well the problem is caused by Qt setting the locale in its startup code - it
isn't caused by QtRuby itself. So it is quite tricky to fix. ActiveRecord
shouldn't really be using locale specific code in Ruby for non-locale specific
purposes. I've had problems with the PDFWriter library too where it was
assuming the decimal point was always a '.'.
-- Richard
More information about the Kde-bindings
mailing list