wok-tiny view busybox/stuff/busybox-1.26-printable.u @ rev 124

Up busybox (1.26.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 11 15:47:13 2017 +0100 (2017-02-11)
parents
children
line source
1 fix the bug of 'ls cannot display utf-8 filenames'
2 --- busybox-1.25/libbb/printable_string.c
3 +++ busybox-1.25/libbb/printable_string.c
4 @@ -28,8 +28,8 @@
5 }
6 if (c < ' ')
7 break;
8 - if (c >= 0x7f)
9 - break;
10 + /* if (c >= 0x7f) */
11 + /* break; */
12 s++;
13 }
15 @@ -42,7 +42,8 @@
16 unsigned char c = *d;
17 if (c == '\0')
18 break;
19 - if (c < ' ' || c >= 0x7f)
20 + /* if (c < ' ' || c >= 0x7f) */
21 + if (c < ' ')
22 *d = '?';
23 d++;
24 }