wok-6.x view busybox/stuff/busybox-1.18-printable.u @ rev 12253
Add tazbug (1.0) - Ready for production and so in core
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 10 12:57:21 2012 +0200 (2012-04-10) |
parents | |
children |
line source
1 fix the bug of 'ls cannot display utf-8 filenames'
2 --- busybox-1.17.3/libbb/printable_string.c
3 +++ busybox-printable/libbb/printable_string.c
4 @@ -31,8 +31,8 @@
5 }
6 if (c < ' ')
7 break;
8 - if (c >= 0x7f)
9 - break;
10 + /* if (c >= 0x7f) */
11 + /* break; */
12 s++;
13 }
15 @@ -45,7 +45,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 }