aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--e-util/e-xml-utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/e-util/e-xml-utils.c b/e-util/e-xml-utils.c
index 3c5fd5f9ee..4f13a616b4 100644
--- a/e-util/e-xml-utils.c
+++ b/e-util/e-xml-utils.c
@@ -60,7 +60,11 @@ e_xml_get_child_by_name_by_lang (const xmlNode *parent, const xmlChar *child_nam
g_return_val_if_fail (child_name != NULL, NULL);
if (lang == NULL) {
+#ifdef HAVE_LC_MESSAGES
lang = setlocale (LC_MESSAGES, NULL);
+#else
+ lang = setlocale (LC_CTYPE, NULL);
+#endif
}
for (child = parent->childs; child != NULL; child = child->next) {
if (xmlStrcmp (child->name, child_name) == 0) {