summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Src/params.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Src/params.c b/Src/params.c
index 6d98b8ee4..59d5daf2f 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -3780,9 +3780,6 @@ static struct localename {
 #ifdef LC_TIME
     {"LC_TIME", LC_TIME},
 #endif
-#ifdef LC_ALL
-    {"LC_ALL", LC_ALL},
-#endif
     {NULL, 0}
 };
 
@@ -3791,6 +3788,10 @@ static void
 setlang(char *x)
 {
     struct localename *ln;
+    char *x2;
+
+    if ((x2 = getsparam("LC_ALL")) && *x2)
+	return;
 
     /*
      * Set the global locale to the value passed, but override