aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
Diffstat (limited to 'toys')
-rw-r--r--toys/example/demo_utf8towc.c3
1 files changed, 1 insertions, 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;