diff options
author | Cem Keylan <cem@ckyln.com> | 2020-04-23 00:35:57 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-04-23 00:35:57 +0300 |
commit | 4d00567bf269b7e5cd2bc53b45c9282a726eaaa1 (patch) | |
tree | 9653616716f9add193e2c0399e378dd99983506c /core/busybox/patches/print-unicode.patch | |
parent | 6685001a647c8810802c4fdab3279909a7d58ef1 (diff) | |
download | repository-4d00567bf269b7e5cd2bc53b45c9282a726eaaa1.tar.gz |
busybox: apply patches
Diffstat (limited to 'core/busybox/patches/print-unicode.patch')
-rw-r--r-- | core/busybox/patches/print-unicode.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/core/busybox/patches/print-unicode.patch b/core/busybox/patches/print-unicode.patch new file mode 100644 index 00000000..178fb938 --- /dev/null +++ b/core/busybox/patches/print-unicode.patch @@ -0,0 +1,22 @@ +diff --git a/libbb/printable_string.c b/libbb/printable_string.c +index a814fd0..f4c7b00 100644 +--- a/libbb/printable_string.c ++++ b/libbb/printable_string.c +@@ -28,8 +28,6 @@ const char* FAST_FUNC printable_string2(uni_stat_t *stats, const char *str) + } + if (c < ' ') + break; +- if (c >= 0x7f) +- break; + s++; + } + +@@ -42,7 +40,7 @@ const char* FAST_FUNC printable_string2(uni_stat_t *stats, const char *str) + unsigned char c = *d; + if (c == '\0') + break; +- if (c < ' ' || c >= 0x7f) ++ if (c < ' ') + *d = '?'; + d++; + } |