mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 16:31:24 +00:00
Make the locale stuff only do the getpid==1 check if BB_INIT is defined
This commit is contained in:
parent
1f3b9f297e
commit
4819c3d477
@ -82,9 +82,13 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BB_LOCALE_SUPPORT
|
#ifdef BB_LOCALE_SUPPORT
|
||||||
|
#ifdef BB_INIT
|
||||||
if(getpid()!=1) /* Do not set locale for `init' */
|
if(getpid()!=1) /* Do not set locale for `init' */
|
||||||
|
#endif
|
||||||
|
{
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
run_applet_by_name(applet_name, argc, argv);
|
run_applet_by_name(applet_name, argc, argv);
|
||||||
|
@ -82,9 +82,13 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BB_LOCALE_SUPPORT
|
#ifdef BB_LOCALE_SUPPORT
|
||||||
|
#ifdef BB_INIT
|
||||||
if(getpid()!=1) /* Do not set locale for `init' */
|
if(getpid()!=1) /* Do not set locale for `init' */
|
||||||
|
#endif
|
||||||
|
{
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
run_applet_by_name(applet_name, argc, argv);
|
run_applet_by_name(applet_name, argc, argv);
|
||||||
|
Loading…
Reference in New Issue
Block a user