summaryrefslogtreecommitdiff
path: root/Xprint
diff options
context:
space:
mode:
authorRoland Mainz <roland.mainz@nrubsig.org>2004-07-19 22:01:52 +0000
committerRoland Mainz <roland.mainz@nrubsig.org>2004-07-19 22:01:52 +0000
commit797114414096d7bf7ed0d73a878d0cffef262301 (patch)
tree2a9b16a356c51110d2cee3d1305cafa3676687f6 /Xprint
parent8853f9331826899229e5b7c964e9c852c0371ce5 (diff)
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.
Diffstat (limited to 'Xprint')
-rw-r--r--Xprint/attributes.c7
1 files changed, 6 insertions, 1 deletions
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
{