Re: [wxlua-users] print numbers

2012-11-15 Thread Victor Bombi
Hello, This is what I get: >lua.exe Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio > print(1.234, string.format("%f", 2.345), os.setlocale()) 1.234 2.345000C > require("wx") > print(1.234, string.format("%f", 2.345), os.setlocale()) 1,234 2,345000Spanish_Spain.1252 > prin

Re: [wxlua-users] print numbers

2012-11-14 Thread John Labenski
On Wed, Nov 14, 2012 at 4:02 AM, Victor Bombi wrote: > Hello, > >> wxLua does not change the locale, but wxWidgets might to make the UI >> numeric display appropriate for users. > > That`s true: > with print(os.locale()) before and after the require"wx" I get > > C > Spanish_Spain.1252 > >> What O

Re: [wxlua-users] print numbers

2012-11-14 Thread Victor Bombi
Hello, > wxLua does not change the locale, but wxWidgets might to make the UI > numeric display appropriate for users. That`s true: with print(os.locale()) before and after the require"wx" I get C Spanish_Spain.1252 > What OS are you on? If you're in Linux you can apply the patch below > and r

Re: [wxlua-users] print numbers

2012-11-13 Thread John Labenski
On Mon, Nov 12, 2012 at 2:14 PM, Victor Bombi wrote: > Hello, > > this script: > > print(0.4) > require("wx") > print(0.4) > > does this output: > > 0.4 > 0,4 > > For me is very bad because I cant serialize floats. Is there any reason for > changing tostring method for numbers or could be reverted

[wxlua-users] print numbers

2012-11-12 Thread Victor Bombi
Hello, this script: print(0.4) require("wx") print(0.4) does this output: 0.4 0,4 For me is very bad because I cant serialize floats. Is there any reason for changing tostring method for numbers or could be reverted? Thank you Victor Bombi