Comment 20 for bug 940638

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

Glauco: try starting it with

LC_ALL=C stellarium

and see if the freezing is gone.

The bug is triggered in StelMainGraphicsView.cpp, Line 204 as I have already shown in comment #14. Qt or OpenGL or whatever will reset the locale settings exactly during this constructor call.

Stellarium already forces LC_NUMERIC to C somewhere very early in main() but this is too early since it will be reset in exactly the above mentioned line. The fix is easy: Move the setlocale(LC_NUMERIC, "C"); to somewhere later *after* this line (or call it again a second time right after this line) and all these problems will be gone. I don't understand why this fix is not yet committed.