wok-6.x annotate busybox/stuff/busybox-1.20-printable.u @ rev 13749
syslinux: locale should be glibc-base compatible
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Dec 31 19:20:51 2012 +0100 (2012-12-31) |
parents | |
children |
rev | line source |
---|---|
pascal@12460 | 1 fix the bug of 'ls cannot display utf-8 filenames' |
pascal@12460 | 2 --- busybox-1.17.3/libbb/printable_string.c |
pascal@12460 | 3 +++ busybox-printable/libbb/printable_string.c |
pascal@12460 | 4 @@ -31,8 +31,8 @@ |
pascal@12460 | 5 } |
pascal@12460 | 6 if (c < ' ') |
pascal@12460 | 7 break; |
pascal@12460 | 8 - if (c >= 0x7f) |
pascal@12460 | 9 - break; |
pascal@12460 | 10 + /* if (c >= 0x7f) */ |
pascal@12460 | 11 + /* break; */ |
pascal@12460 | 12 s++; |
pascal@12460 | 13 } |
pascal@12460 | 14 |
pascal@12460 | 15 @@ -45,7 +45,8 @@ |
pascal@12460 | 16 unsigned char c = *d; |
pascal@12460 | 17 if (c == '\0') |
pascal@12460 | 18 break; |
pascal@12460 | 19 - if (c < ' ' || c >= 0x7f) |
pascal@12460 | 20 + /* if (c < ' ' || c >= 0x7f) */ |
pascal@12460 | 21 + if (c < ' ') |
pascal@12460 | 22 *d = '?'; |
pascal@12460 | 23 d++; |
pascal@12460 | 24 } |