27 lines
489 B
Diff
27 lines
489 B
Diff
|
#
|
||
|
# 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++;
|
||
|
}
|