mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
busybox: make unicode characters printable
This commit is contained in:
parent
3b3a2fcb94
commit
a1ac9c51a5
@ -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++;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user