View Single Post
Old 03-26-2010, 06:36 AM   #51
tomm
Member
tomm began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Mar 2010
Device: Iliad 2nd edition
Smile Seems to be a locale issue

Hi all,

first of all many thanks to Iņigo for the excellent work.

I have gotten further why the 'sysinfo' application crashes:
If I start an interactive lua session and type "print(tonumber('3.14'))" I get exactly what I expect. However, if I put such a line into "sysinfo.lua", I get 'nil' as a result.

This looks like a locale issue (note that I have set my language to german, which might imply a 'comma' as 'decimal point' for the tonumber function).

What will be the best way to set the locale temporarily for the sysinfo application? Why does the xterm application seems to export 'english' settings?

Many thanks again
Tomm
tomm is offline   Reply With Quote