orrery, $LANG, numbers format : bad numbers make orrery crash.
Xavier Cremaschi
omega.xavier at gmail.com
Tue Jan 13 11:07:52 CET 2009
Hi folks, here is my problem :
#echo $LANG
fr_FR.UTF-8
#orrery -d /usr/share/orrery/
Wrong number (1) of numbers found on line 1 of
/usr/share/orrery//orbitalElements/mercuryElements
Ok so let's check this file, assuming bad packaging is unlikely to happen...
#cat /usr/share/orrery/orbitalElements/mercuryElements
0.38709927 0.20563593 7.00497902 252.25032350 77.45779628 48.33076593
0.00000037 0.00001906 -0.00594749 149472.67411175 0.16047689 -0.12534081
0.38709843 0.20563661 7.00559432 252.25166724 77.45771895 48.33961819
0.00000000 0.00002123 -0.00590158 149472.67486623 0.15940013 -0.12214182
0.00000000 0.00000000 0.00000000 0.00000000
But '.' (point) is a decimal delimiter in english cultural settings. We
french use ',' (comma)
#LANG=C orrery -d /usr/share/orrery/
It works.
Does someone have an idea to avoid the overriding of $LANG on the fly
for this specific application ? A config file to tweak ?
Best regards,
Xavier Cremaschi.
More information about the community
mailing list