From 797114414096d7bf7ed0d73a878d0cffef262301 Mon Sep 17 00:00:00 2001 From: Roland Mainz Date: Mon, 19 Jul 2004 22:01:52 +0000 Subject: [PATCH] Fix for http://freedesktop.org/bugzilla/show_bug.cgi?id=893 - Fixing the bug that Xprt did not honor ${LC_ALL} when looking for model-config dirs. --- Xprint/attributes.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Xprint/attributes.c b/Xprint/attributes.c index ce386596d..8dd1b64cb 100644 --- a/Xprint/attributes.c +++ b/Xprint/attributes.c @@ -171,7 +171,12 @@ XpGetConfigDir(Bool useLocale) if(useLocale == False) langDir = "/C"; else { - if((langName = getenv("LANG")) == (char *)NULL) + langName = getenv("LC_ALL"); + if (langName == NULL) { + langName = getenv("LANG"); + } + + if(langName == (char *)NULL) return (char *)NULL; else {