From f6f2af83113555a2d3a3be40be1a63116fbaf682 Mon Sep 17 00:00:00 2001 From: markw Date: Tue, 27 Mar 2001 17:07:15 +0000 Subject: Fix to last patch: locale code should be 9, not 7. git-svn-id: svn://busybox.net/trunk/busybox@2199 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- lash.c | 2 +- sh.c | 2 +- shell/lash.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lash.c b/lash.c index ca0d4bb43..22c56d444 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 ca0d4bb43..22c56d444 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 ca0d4bb43..22c56d444 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); -- cgit v1.2.3-55-g6feb