diff options
-rw-r--r-- | applets/busybox.c | 6 | ||||
-rw-r--r-- | busybox.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/applets/busybox.c b/applets/busybox.c index 41b6069ed..9cc884854 100644 --- a/applets/busybox.c +++ b/applets/busybox.c | |||
@@ -82,9 +82,13 @@ int main(int argc, char **argv) | |||
82 | } | 82 | } |
83 | #endif | 83 | #endif |
84 | 84 | ||
85 | #ifdef BB_LOCALE_SUPPORT | 85 | #ifdef BB_LOCALE_SUPPORT |
86 | #ifdef BB_INIT | ||
86 | if(getpid()!=1) /* Do not set locale for `init' */ | 87 | if(getpid()!=1) /* Do not set locale for `init' */ |
88 | #endif | ||
89 | { | ||
87 | setlocale(LC_ALL, ""); | 90 | setlocale(LC_ALL, ""); |
91 | } | ||
88 | #endif | 92 | #endif |
89 | 93 | ||
90 | run_applet_by_name(applet_name, argc, argv); | 94 | run_applet_by_name(applet_name, argc, argv); |
@@ -82,9 +82,13 @@ int main(int argc, char **argv) | |||
82 | } | 82 | } |
83 | #endif | 83 | #endif |
84 | 84 | ||
85 | #ifdef BB_LOCALE_SUPPORT | 85 | #ifdef BB_LOCALE_SUPPORT |
86 | #ifdef BB_INIT | ||
86 | if(getpid()!=1) /* Do not set locale for `init' */ | 87 | if(getpid()!=1) /* Do not set locale for `init' */ |
88 | #endif | ||
89 | { | ||
87 | setlocale(LC_ALL, ""); | 90 | setlocale(LC_ALL, ""); |
91 | } | ||
88 | #endif | 92 | #endif |
89 | 93 | ||
90 | run_applet_by_name(applet_name, argc, argv); | 94 | run_applet_by_name(applet_name, argc, argv); |