diff --git a/packages/sysutils/busybox/patches/busybox-03-make_unicode_printable.patch b/packages/sysutils/busybox/patches/busybox-03-make_unicode_printable.patch new file mode 100644 index 0000000000..ec7354f6d4 --- /dev/null +++ b/packages/sysutils/busybox/patches/busybox-03-make_unicode_printable.patch @@ -0,0 +1,26 @@ +# +# stolen from OpenWRT +# +# https://dev.openwrt.org/attachment/ticket/7993/701-make_unicode_printable.patch +# + +--- a/libbb/printable_string.c 2013-01-13 20:06:04.210089516 +0800 ++++ b/libbb/printable_string.c 2013-01-13 20:00:27.917211167 +0800 +@@ -31,8 +31,6 @@ + } + if (c < ' ') + break; +- if (c >= 0x7f) +- break; + s++; + } + +@@ -45,7 +43,7 @@ + unsigned char c = *d; + if (c == '\0') + break; +- if (c < ' ' || c >= 0x7f) ++ if (c < ' ') + *d = '?'; + d++; + }