projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Updates from both Vladimir and Larry
[oweals/busybox.git]
/
busybox.c
diff --git
a/busybox.c
b/busybox.c
index 41b6069edb79bc0b4d4251296fc90044dd5eb5dc..9cc884854c1bf97bca8543cb7ad3e53fad1bcb9e 100644
(file)
--- a/
busybox.c
+++ b/
busybox.c
@@
-82,9
+82,13
@@
int main(int argc, char **argv)
}
#endif
-#ifdef BB_LOCALE_SUPPORT
+#ifdef BB_LOCALE_SUPPORT
+#ifdef BB_INIT
if(getpid()!=1) /* Do not set locale for `init' */
+#endif
+ {
setlocale(LC_ALL, "");
+ }
#endif
run_applet_by_name(applet_name, argc, argv);