From: Michael Banck Subject: Set locale to "C" before making shaders and reset it afterwards. --- a/src/Common.cpp +++ b/src/Common.cpp @@ -4,6 +4,8 @@ #include #include "CgUtil.h" +#include + //#include #include //#include @@ -859,7 +861,13 @@ void drawFrame() { + char* locale; + locale = setlocale(LC_ALL,NULL); + setlocale(LC_ALL,"C"); + cgSettings.MakeShaders(); + + setlocale(LC_ALL,locale); if (mol.DoingAO()) { // do at least one more step per rendering