Commit 23706703 authored by Jehan's avatar Jehan

Bug 704510 - GIMP segfaults on OSX.

Forgot a setenv() with possible a NULL value.
parent aa67bec9
......@@ -100,7 +100,10 @@ gimp_translation_store_constructed (GObject *object)
g_setenv ("LANGUAGE", setlocale (LC_ALL, NULL), TRUE);
setlocale (LC_ALL, "");
label = g_strdup_printf ("%s", _("System Language"));
g_setenv ("LANGUAGE", current_lang, TRUE);
if (current_lang)
g_setenv ("LANGUAGE", current_lang, TRUE);
g_unsetenv ("LANGUAGE");
setlocale (LC_ALL, "");
g_free (current_lang);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment