John Labenski ha scritto:
On 3/7/06, Francesco Montorsi <[EMAIL PROTECTED]> wrote:
Hi John,
    I see you added that very nice example and also a screenshot for
it... unfortunately it doesn't run on my linux with latest wxLua
compiled & installed:

[EMAIL PROTECTED]:~/work/wxLua/samples$ wxlua wxluasudoku.wx.lua
wxLua: Syntax error during pre-compilation
wxluasudoku.wx.lua:193: malformed number near `9.1'
wxLua: Syntax error during pre-compilation

Maybe the dot must be replaced with a comma ?
Doing the replace in line 193 makes wxLua complain for next occurrences
.... probably if I'd solve them all, it would just run.
What I do not understand is why it works with you ?

It works fine here, I want to divide by the number 9.1 = 91E-1.

Could it be a locale problem ?

It seems like it is, I don't know how to solve it for you. Change you
system locale to "C" maybe? I think that's what I use.
Changing locale it works.

there is something at bottom of
   http://www.lua.org/pil/22.2.html
but I've tried to run just 'lua' and not 'wxlua' and it accepts also dots as decimals... so the problem seems to be in wxLua or wxWidgets. Searching for locale in wxLua gives few results and it looks like a wxLocale is never created in wxLua. Maybe it's some initialization stuff done by wx...

I'll try to dig in this problem..

Francesco



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to