aboutsummaryrefslogtreecommitdiff
path: root/toys.h
diff options
context:
space:
mode:
authorFelix Janda <felix.janda@posteo.de>2012-11-08 11:19:07 -0600
committerFelix Janda <felix.janda@posteo.de>2012-11-08 11:19:07 -0600
commitabb8ca2455f3efd6f8f0eed78c54829bf0a9001e (patch)
treef65809ecc156e251b65684530073bf3ea87ccb11 /toys.h
parente5138f409785757aa7d77d558b4bf0d9f01a6176 (diff)
downloadtoybox-abb8ca2455f3efd6f8f0eed78c54829bf0a9001e.tar.gz
wc -m only cares about counting characters. Attached is a try on implementing it and some test cases for it. The test cases are only for UTF-8 locales.
Diffstat (limited to 'toys.h')
-rw-r--r--toys.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/toys.h b/toys.h
index 6963ae72..eb7c67f6 100644
--- a/toys.h
+++ b/toys.h
@@ -16,6 +16,7 @@
#include <inttypes.h>
#include <limits.h>
#include <libgen.h>
+#include <locale.h>
#include <math.h>
#include <pty.h>
#include <pwd.h>
@@ -46,6 +47,8 @@
#include <unistd.h>
#include <utime.h>
#include <utmpx.h>
+#include <wchar.h>
+#include <wctype.h>
#include "lib/lib.h"
#include "toys/e2fs.h"