lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


We are also evaluating luajit and we get a strange error each time we deal with a float (ie like 3.14116) : we get a 'Malformed number ...' error. In the main core of the program embedding lua, we call the setlocale(LC_ALL, "C"); but it does not seem to change anything. Even calling the os.setlocale from the lua script does not change this. But i we set the value 3,14116 (ie "french-like"), then the number is accepted.

Any idea to fix this ? After a look in the luajit code, i was no table to find where the decimal point is detected (or not).


--
=================================
Sylvain FABRE
sylvain.fabre@inpixal.com
Fixe: 09 72 11 30 24
Mobile: 06 30 12 72 34
Fax : 09 72 11 10 71
=================================