From 2372c00c5ce81b173601e70525fba84920ac4c9c Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 9 Sep 2020 04:30:22 -0500 Subject: Use the infrastructure properly. --- toys/example/demo_utf8towc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/toys/example/demo_utf8towc.c b/toys/example/demo_utf8towc.c index 1ea8edaf..25737856 100644 --- a/toys/example/demo_utf8towc.c +++ b/toys/example/demo_utf8towc.c @@ -6,6 +6,7 @@ USE_DEMO_UTF8TOWC(NEWTOY(demo_utf8towc, 0, TOYFLAG_USR|TOYFLAG_BIN)) config DEMO_UTF8TOWC bool "demo_utf8towc" + depends on TOYBOX_I18N default n help usage: demo_utf8towc @@ -22,8 +23,6 @@ void demo_utf8towc_main(void) unsigned u, h; wchar_t wc1, wc2; - setlocale(LC_ALL, "en_US.UTF-8"); - memset(&mb, 0, sizeof(mb)); for (u=1; u; u++) { char *str = (void *)&h; -- cgit v1.2.3