summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Whitley2001-03-27 17:07:15 +0000
committerMark Whitley2001-03-27 17:07:15 +0000
commita82a00397fc398e2aebe4ef4693f6e43c5a11e63 (patch)
tree1ed0cc5c207ea5b9c99dc0fb16f4658b819bafa9
parent1c6581a8659219c09bc33ae45b81d3fd547c3d08 (diff)
downloadbusybox-a82a00397fc398e2aebe4ef4693f6e43c5a11e63.zip
busybox-a82a00397fc398e2aebe4ef4693f6e43c5a11e63.tar.gz
Fix to last patch: locale code should be 9, not 7.
-rw-r--r--lash.c2
-rw-r--r--sh.c2
-rw-r--r--shell/lash.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/lash.c b/lash.c
index ca0d4bb..22c56d4 100644
--- a/lash.c
+++ b/lash.c
@@ -449,7 +449,7 @@ static int builtin_export(struct child_prog *child)
#endif
if(strncmp(v, "LC_ALL=", 7)==0)
setlocale(LC_ALL, getenv("LC_ALL"));
- if(strncmp(v, "LC_CTYPE=", 7)==0)
+ if(strncmp(v, "LC_CTYPE=", 9)==0)
setlocale(LC_CTYPE, getenv("LC_CTYPE"));
return (res);
diff --git a/sh.c b/sh.c
index ca0d4bb..22c56d4 100644
--- a/sh.c
+++ b/sh.c
@@ -449,7 +449,7 @@ static int builtin_export(struct child_prog *child)
#endif
if(strncmp(v, "LC_ALL=", 7)==0)
setlocale(LC_ALL, getenv("LC_ALL"));
- if(strncmp(v, "LC_CTYPE=", 7)==0)
+ if(strncmp(v, "LC_CTYPE=", 9)==0)
setlocale(LC_CTYPE, getenv("LC_CTYPE"));
return (res);
diff --git a/shell/lash.c b/shell/lash.c
index ca0d4bb..22c56d4 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -449,7 +449,7 @@ static int builtin_export(struct child_prog *child)
#endif
if(strncmp(v, "LC_ALL=", 7)==0)
setlocale(LC_ALL, getenv("LC_ALL"));
- if(strncmp(v, "LC_CTYPE=", 7)==0)
+ if(strncmp(v, "LC_CTYPE=", 9)==0)
setlocale(LC_CTYPE, getenv("LC_CTYPE"));
return (res);