summaryrefslogtreecommitdiff
path: root/Xprint
diff options
context:
space:
mode:
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
{