diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-04-10 07:26:30 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-04-10 07:26:30 +0800 |
| commit | a64930636462bf24118ca7266f699ce2b696e821 (patch) | |
| tree | 58d116ac5f03aa9e84ece6e4ffa6b489573042a4 /repos/core/busybox/print-unicode.patch | |
| parent | ddd8e1a8fab2ac39396282a7c09ddf6eca219613 (diff) | |
| download | alicelinux-a64930636462bf24118ca7266f699ce2b696e821.tar.gz alicelinux-a64930636462bf24118ca7266f699ce2b696e821.zip | |
clang branch updated
Diffstat (limited to 'repos/core/busybox/print-unicode.patch')
| -rw-r--r-- | repos/core/busybox/print-unicode.patch | 22 |
1 files changed, 22 insertions, 0 deletions
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++; + } |