Hi,<br><br>Working on gst-plugins-gl ( <a href="http://diracvideo.org/git?p=gst-plugins-gl.git;a=summary">http://diracvideo.org/git?p=gst-plugins-gl.git;a=summary</a> , and the branch : <a href="http://diracvideo.org/git?p=gst-plugins-gl.git;a=shortlog;h=remove_gstfreeglut">http://diracvideo.org/git?p=gst-plugins-gl.git;a=shortlog;h=remove_gstfreeglut</a> )<br>
, I am trying to resolve a bug about &quot;ATI + fragment shader (from GLSL)&nbsp; +&nbsp; setlocale (from #include &lt;locale.h&gt;).<br><br>Well, shaders are not working if&nbsp; setlocale (LC_ALL, &quot;&quot;);&nbsp; is called. And no problem if &nbsp; setlocale (LC_ALL, &quot;C&quot;); is called.<br>
I can see any relation bettween the 2 things. <br><br>And setlocale (LC_ALL, &quot;&quot;); is called in gst_init. (cvs/gstreamer/gst/gst.c). I have spent a lot of time to find that the bug become when setlocale is called with arg &quot;&quot;.<br>
<br>Anyway, I have made a minimal test which only requires&nbsp; freeglut (or glut) and have a graphic card which supports OpenGL and GLSL.<br>I joined this test to this mail:<br><br>./test 0&nbsp;&nbsp; give the wrong result:&nbsp; red color in the window. ( setlocale (LC_ALL, &quot;&quot;);&nbsp; is called)<br>
./test 1 &nbsp; give the right result:&nbsp; yellow color in the window. ( setlocale (LC_ALL, &quot;C&quot;); is called)<br><br>I have the bug on ubuntu intrepid (and Linux julien-desktop 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 GNU/Linux)<br>
I join also my glxinfo output and my xorg.conf (I have little bit fired my xorg.conf&nbsp; but I had same bug with the default xorg.conf)<br>I have an ATI 9800 pro<br>fglrxinfo:<br>display: :0.0&nbsp; screen: 0<br>OpenGL vendor string: ATI Technologies Inc.<br>
OpenGL renderer string: RADEON 9800 PRO<br>OpenGL version string: 2.1.8087 Release<br><br>(It seems there is no problem with an NVIDIA graphic card)<br><br>setlocale doc: <a href="http://www.opengroup.org/onlinepubs/007908799/xsh/setlocale.html">http://www.opengroup.org/onlinepubs/007908799/xsh/setlocale.html</a><br>
<br>my config:<br><br>echo $LANG<br>fr_FR.UTF-8<br><br>So what do you think I can do ? Bug come from fr_FR.UTF-8 environnement ?<br>Where should I report the problem ?<br><br>Please try the test if you have an ATI and GLSL and linux. <br>
<br>Sincerely<br><br>Julien<br><br><br>