summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-16 19:27:38 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-16 19:27:38 +0200
commite6dadf1a0c2ee17b6d692167229f439aff99b2fd (patch)
tree3c60dab7b181811fd80bd41b7100562dcbbd26af
parent4dc1eee385f1b5115976db8d6b60ca0a08ed05ce (diff)
downloadmtk-20170518-e6dadf1a0c2ee17b6d692167229f439aff99b2fd.zip
mtk-20170518-e6dadf1a0c2ee17b6d692167229f439aff99b2fd.tar.gz
mtk-20170518-e6dadf1a0c2ee17b6d692167229f439aff99b2fd.tar.bz2
package/utils/busybox: probably from OpenWRT
-rwxr-xr-xpackage/utils/busybox/patches/270-libbb_make_unicode_printable.patch20
1 files changed, 20 insertions, 0 deletions
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 100755
index 0000000..3bfd48a
--- /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++;
+ }