aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 4a9795ca..2b04d135 100644
--- a/main.c
+++ b/main.c
@@ -101,6 +101,9 @@ void toy_exec(char *argv[])
which = toy_find(argv[0]);
if (!which) return;
toy_init(which, argv);
+#ifdef CFG_TOYBOX_I18N
+ setlocale(LC_ALL, "");
+#endif
toys.which->toy_main();
exit(toys.exitval);
}