]> git.sesse.net Git - movit/commitdiff
Properly restore the LC_NUMERIC locale after finalizing.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 6 Apr 2014 21:58:54 +0000 (23:58 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 6 Apr 2014 21:58:54 +0000 (23:58 +0200)
There were two issues here:

 1. setlocale(LC_NUMERIC, "C") always returns C, not the previous
    locale.
 2. The return value of setlocale() may point into static storage,
    which may be corrupted when we call into libGL, if e.g.
    the shader compiler calls setlocale() on its own.

Patch by Jean-Baptiste Mardelle.


No differences found