Comment 12 for bug 940638

Revision history for this message
Bernd Kreuss (prof7bit) wrote :

Attached is config.ini and satelllites.json. It contains only one satellite, namely the ISS.

I don't think too much time should be used to investigate my configuration, it was created yesterday after completely removing the old ~/.stellarium/ folder, so it should not contain any strange old settings left over from previous versions.

Maybe you cannot replicate the bug because it depends on the version of your libc or other runtime standard libs, maybe it needs more than only LC_ALL to fully switch the system to german. My system is xubuntu 11.10. I did not have this problem on my old laptop which had an ancient version of Kubuntu Hardy (with kde3 and manually installed Qt4). Maybe you can replicate it by doing a complete german xubuntu install from scratch in a virtual machine.

Somewhere else I read about LC_NUMERIC, maybe your system is sensitive to LC_NUMERIC for numbers parsing and ignoring LC_ALL, I don't have LC_NUMERIC myself and my system will ignore it but you could try to set LC_NUMERIC=de_DE.UTF-8 and there is also LANG and LANGUAGE

The problem is definitely something sscanf() (or similar) and locale related and the difference is NOT in our stellarium settings, it is most likely that stellarium does not properly set the locale to english prior to parsing the configs. Can you tell me the source files where it is parsing the satellites orbital elements, so I don't have to search them manually? I will try to investigate it myself and try to provide a patch.

Maybe it would even be a good idea to force the number parsing locale to english by default for the *entire* program since all it will ever do is parsing config files anyways. The few places where the user is allowed to interactively enter a decimal number formatted in his own locale could be treated separately.

If you have some experimental patches for me to try and experiment, I have now set up everything here to be able to apply, compile and test it myself if this is of any help.