Greetings.

I've found one Shoes unexpected behaviour, look:

eveel{~}% echo $LANG
ru_RU.UTF-8

eveel{~}% ruby -e 'puts "%f" % 0.123'
0.123000

eveel{~}% echo 'puts "%f" % 0.123' >shoes.app && shoes shoes.app; rm
shoes.app
0,123000
^C

eveel{~}% export
LANG=C                                                                     

eveel{~}% echo 'Shoes.app { puts "%f" % 0.123 }' >shoes.app && shoes
shoes.app; rm shoes.app
0.123000

It is good that Shoes handles locale setting out-of-box, but when I'm
using Sequel in my Shoes application, his ORM tries to generate a query
to the database:

I, [2008-12-20T16:48:42.878560 #9939]  INFO -- : INSERT INTO `days`
(`value`, `month_id`) VALUES (0,123, 1)
SQLite3::SQLException 3 values for 2 columns

Script that reproduces the bug, attached.

Or this is a Sequel bug?

-- 
Dmitry A. Ustalov
http://eveel.blogspot.com/
icq:1996961, xmpp:[email protected]

Attachment: shoes-sequel-float-representation.rb
Description: application/ruby

Reply via email to