From 2ab0dae9915d5c7c1c06c26ce1956bf0badd7a5b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 27 Oct 2014 11:22:15 +0000 Subject: busybox: make high ASCII chars printable (#7993) Currently busybox utils like "ls" fail to display filenames containing UTF-8 characters, replacing any special characters with "?". Change libbb's printable_string() function to allow high ASCII characters so that unicode filenames are displayed correctls. Signed-off-by: Jo-Philipp Wich SVN-Revision: 43084 --- .../patches/270-libbb_make_unicode_printable.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 package/utils/busybox/patches/270-libbb_make_unicode_printable.patch (limited to 'package/utils/busybox/patches') diff --git a/package/utils/busybox/patches/270-libbb_make_unicode_printable.patch b/package/utils/busybox/patches/270-libbb_make_unicode_printable.patch new file mode 100644 index 0000000000..3bfd48a23b --- /dev/null +++ b/package/utils/busybox/patches/270-libbb_make_unicode_printable.patch @@ -0,0 +1,20 @@ +--- a/libbb/printable_string.c ++++ b/libbb/printable_string.c +@@ -31,8 +31,6 @@ const char* FAST_FUNC printable_string(u + } + if (c < ' ') + break; +- if (c >= 0x7f) +- break; + s++; + } + +@@ -45,7 +43,7 @@ const char* FAST_FUNC printable_string(u + unsigned char c = *d; + if (c == '\0') + break; +- if (c < ' ' || c >= 0x7f) ++ if (c < ' ') + *d = '?'; + d++; + } -- cgit v1.2.3