diff options
author | Rob Landley <rob@landley.net> | 2014-06-21 13:03:42 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-06-21 13:03:42 -0500 |
commit | fc49761a9c992a120a27cca016d6a3ed31b1f3d3 (patch) | |
tree | e8c448bbf886658ceb4352bee63844edcc73c870 | |
parent | 52dea1258516773784504cda3681483d0e6c68b7 (diff) | |
download | toybox-fc49761a9c992a120a27cca016d6a3ed31b1f3d3.tar.gz |
Forgot to check in main() part of TOYFLAG_LOCALE change.
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -66,6 +66,8 @@ static void toy_singleinit(struct toy_list *which, char *argv[]) toys.which = which; toys.argv = argv; + if (CFG_TOYBOX_I18N && (which->flags & TOYFLAG_LOCALE)) setlocale(LC_ALL, ""); + if (CFG_TOYBOX_HELP_DASHDASH && argv[1] && !strcmp(argv[1], "--help")) { if (toys.which == toy_list && toys.argv[2]) if (!(toys.which = toy_find(toys.argv[2]))) return; @@ -166,8 +168,6 @@ list: int main(int argc, char *argv[]) { - if (CFG_TOYBOX_I18N) setlocale(LC_ALL, ""); - if (CFG_TOYBOX) { // Trim path off of command name *argv = basename(*argv); |