From: Steinar H. Gunderson Date: Sun, 6 Apr 2014 21:58:54 +0000 (+0200) Subject: Properly restore the LC_NUMERIC locale after finalizing. X-Git-Tag: 1.1~2 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=041500231054441f851b7c7260ab815dae6fb368;hp=041500231054441f851b7c7260ab815dae6fb368;p=movit Properly restore the LC_NUMERIC locale after finalizing. 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. ---