Commit 5089f856 authored by Dom Lachowicz's avatar Dom Lachowicz

setlocale(LC_ALL) may return "C". Evaluate $LANG first, equate "C" with

	* rsvg-cond.c (rsvg_cond_parse_system_language): setlocale(LC_ALL)
	may return "C". Evaluate $LANG first, equate "C" with "en".
parent cb8d9468
2005-10-22 Dom Lachowicz <cinamod@hotmail.com>
* rsvg-cond.c (rsvg_cond_parse_system_language): setlocale(LC_ALL)
may return "C". Evaluate $LANG first, equate "C" with "en".
2005-10-22 Dom Lachowicz <cinamod@hotmail.com>
* gtk-engine/svg-render.c: Cache RsvgHandles rather than GByteArrays
......
......@@ -144,11 +144,16 @@ rsvg_cond_parse_system_language (const char * value)
#endif
if(!locale)
locale = g_strdup (setlocale (LC_ALL, NULL));
locale = g_strdup (g_getenv ("LANG"));
/* catch-all */
if(!locale)
locale = g_strdup (g_getenv ("LANG"));
if(!locale) {
locale = g_strdup (setlocale (LC_ALL, NULL));
if(locale && strcmp(locale, "C") == 0) {
g_free(locale);
locale = g_strdup("en");
}
}
if (locale)
{
......
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