Fix to last patch: locale code should be 9, not 7.
This commit is contained in:
2
lash.c
2
lash.c
@ -449,7 +449,7 @@ static int builtin_export(struct child_prog *child)
|
|||||||
#endif
|
#endif
|
||||||
if(strncmp(v, "LC_ALL=", 7)==0)
|
if(strncmp(v, "LC_ALL=", 7)==0)
|
||||||
setlocale(LC_ALL, getenv("LC_ALL"));
|
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"));
|
setlocale(LC_CTYPE, getenv("LC_CTYPE"));
|
||||||
|
|
||||||
return (res);
|
return (res);
|
||||||
|
2
sh.c
2
sh.c
@ -449,7 +449,7 @@ static int builtin_export(struct child_prog *child)
|
|||||||
#endif
|
#endif
|
||||||
if(strncmp(v, "LC_ALL=", 7)==0)
|
if(strncmp(v, "LC_ALL=", 7)==0)
|
||||||
setlocale(LC_ALL, getenv("LC_ALL"));
|
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"));
|
setlocale(LC_CTYPE, getenv("LC_CTYPE"));
|
||||||
|
|
||||||
return (res);
|
return (res);
|
||||||
|
@ -449,7 +449,7 @@ static int builtin_export(struct child_prog *child)
|
|||||||
#endif
|
#endif
|
||||||
if(strncmp(v, "LC_ALL=", 7)==0)
|
if(strncmp(v, "LC_ALL=", 7)==0)
|
||||||
setlocale(LC_ALL, getenv("LC_ALL"));
|
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"));
|
setlocale(LC_CTYPE, getenv("LC_CTYPE"));
|
||||||
|
|
||||||
return (res);
|
return (res);
|
||||||
|
Reference in New Issue
Block a user