From a64930636462bf24118ca7266f699ce2b696e821 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Thu, 10 Apr 2025 07:26:30 +0800 Subject: clang branch updated --- repos/core/busybox/print-unicode.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 repos/core/busybox/print-unicode.patch (limited to 'repos/core/busybox/print-unicode.patch') diff --git a/repos/core/busybox/print-unicode.patch b/repos/core/busybox/print-unicode.patch new file mode 100644 index 00000000..178fb938 --- /dev/null +++ b/repos/core/busybox/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++; + } -- cgit v1.2.3