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
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
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
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
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