From: Michael Banck <mbanck@debian.org>
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 <GL/glew.h>
 #include "CgUtil.h"
 
+#include <locale.h>
+
 //#include <GL/gl.h>
 #include <math.h>
 //#include <GL/glu.h>
@@ -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
