Page 1 of 1

setlocale(LC_ALL, "") in locale.c - Image Magick 6.3.7-2

Posted: 2008-02-15T10:43:07-07:00
by dlister
The call to "setlocale(LC_ALL, "")" in InitializeLocaleList() in locale.c is causing some issues with our applications. Because we are using the Mult-Threaded DLL "C" run time, this call to setlocale changes the locale of our application when Image Magick is loaded.

I believe that this call to setlocale should be removed since the code in InitializeLocaleList() appears to be just querying what the locale of the current envionment is.

David

Re: setlocale(LC_ALL, "") in locale.c - Image Magick 6.3.7-2

Posted: 2008-02-15T10:47:16-07:00
by magick
Recent releases of ImageMagick do not have a call to the setlocale() method for the reasons you stated.