diff options
-rw-r--r-- | lash.c | 2 | ||||
-rw-r--r-- | sh.c | 2 | ||||
-rw-r--r-- | shell/lash.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -449,7 +449,7 @@ static int builtin_export(struct child_prog *child) | |||
449 | #endif | 449 | #endif |
450 | if(strncmp(v, "LC_ALL=", 7)==0) | 450 | if(strncmp(v, "LC_ALL=", 7)==0) |
451 | setlocale(LC_ALL, getenv("LC_ALL")); | 451 | setlocale(LC_ALL, getenv("LC_ALL")); |
452 | if(strncmp(v, "LC_CTYPE=", 7)==0) | 452 | if(strncmp(v, "LC_CTYPE=", 9)==0) |
453 | setlocale(LC_CTYPE, getenv("LC_CTYPE")); | 453 | setlocale(LC_CTYPE, getenv("LC_CTYPE")); |
454 | 454 | ||
455 | return (res); | 455 | return (res); |
@@ -449,7 +449,7 @@ static int builtin_export(struct child_prog *child) | |||
449 | #endif | 449 | #endif |
450 | if(strncmp(v, "LC_ALL=", 7)==0) | 450 | if(strncmp(v, "LC_ALL=", 7)==0) |
451 | setlocale(LC_ALL, getenv("LC_ALL")); | 451 | setlocale(LC_ALL, getenv("LC_ALL")); |
452 | if(strncmp(v, "LC_CTYPE=", 7)==0) | 452 | if(strncmp(v, "LC_CTYPE=", 9)==0) |
453 | setlocale(LC_CTYPE, getenv("LC_CTYPE")); | 453 | setlocale(LC_CTYPE, getenv("LC_CTYPE")); |
454 | 454 | ||
455 | return (res); | 455 | 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) | |||
449 | #endif | 449 | #endif |
450 | if(strncmp(v, "LC_ALL=", 7)==0) | 450 | if(strncmp(v, "LC_ALL=", 7)==0) |
451 | setlocale(LC_ALL, getenv("LC_ALL")); | 451 | setlocale(LC_ALL, getenv("LC_ALL")); |
452 | if(strncmp(v, "LC_CTYPE=", 7)==0) | 452 | if(strncmp(v, "LC_CTYPE=", 9)==0) |
453 | setlocale(LC_CTYPE, getenv("LC_CTYPE")); | 453 | setlocale(LC_CTYPE, getenv("LC_CTYPE")); |
454 | 454 | ||
455 | return (res); | 455 | return (res); |