From: Francesco M. <f18...@ya...> - 2006-03-07 17:52:55
|
John Labenski ha scritto: > On 3/7/06, Francesco Montorsi <f18...@ya...> 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: >> >> frm@genius:~/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 |