Fix to last patch: locale code should be 9, not 7.
authorMark Whitley <markw@lineo.com>
Tue, 27 Mar 2001 17:07:15 +0000 (17:07 -0000)
committerMark Whitley <markw@lineo.com>
Tue, 27 Mar 2001 17:07:15 +0000 (17:07 -0000)
lash.c
sh.c
shell/lash.c

diff --git a/lash.c b/lash.c
index ca0d4bb43e59c1ffda3231cfcff6d46eb25a3662..22c56d444ca2e342d713a525ca7bb41b7fdb4035 100644 (file)
--- 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 ca0d4bb43e59c1ffda3231cfcff6d46eb25a3662..22c56d444ca2e342d713a525ca7bb41b7fdb4035 100644 (file)
--- 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);
index ca0d4bb43e59c1ffda3231cfcff6d46eb25a3662..22c56d444ca2e342d713a525ca7bb41b7fdb4035 100644 (file)
@@ -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);