aboutsummaryrefslogtreecommitdiff
path: root/toys/example
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-09-09 04:30:22 -0500
committerRob Landley <rob@landley.net>2020-09-09 04:30:22 -0500
commit2372c00c5ce81b173601e70525fba84920ac4c9c (patch)
treecb13faacf9b1a4a5895d161adb6d7662f00a9586 /toys/example
parentf7fa69a772006faebec5b272e77cf8e2502087af (diff)
downloadtoybox-2372c00c5ce81b173601e70525fba84920ac4c9c.tar.gz
Use the infrastructure properly.
Diffstat (limited to 'toys/example')
-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;