wok-6.x annotate busybox/stuff/busybox-1.18-printable.u @ rev 12157
Up: slitaz-base-files (4.4.1) - Now include httphelper, calc
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Mar 17 14:21:12 2012 +0100 (2012-03-17) |
parents | |
children |
rev | line source |
---|---|
pascal@8238 | 1 fix the bug of 'ls cannot display utf-8 filenames' |
pascal@8238 | 2 --- busybox-1.17.3/libbb/printable_string.c |
pascal@8238 | 3 +++ busybox-printable/libbb/printable_string.c |
pascal@8238 | 4 @@ -31,8 +31,8 @@ |
pascal@8238 | 5 } |
pascal@8238 | 6 if (c < ' ') |
pascal@8238 | 7 break; |
pascal@8238 | 8 - if (c >= 0x7f) |
pascal@8238 | 9 - break; |
pascal@8238 | 10 + /* if (c >= 0x7f) */ |
pascal@8238 | 11 + /* break; */ |
pascal@8238 | 12 s++; |
pascal@8238 | 13 } |
pascal@8238 | 14 |
pascal@8238 | 15 @@ -45,7 +45,8 @@ |
pascal@8238 | 16 unsigned char c = *d; |
pascal@8238 | 17 if (c == '\0') |
pascal@8238 | 18 break; |
pascal@8238 | 19 - if (c < ' ' || c >= 0x7f) |
pascal@8238 | 20 + /* if (c < ' ' || c >= 0x7f) */ |
pascal@8238 | 21 + if (c < ' ') |
pascal@8238 | 22 *d = '?'; |
pascal@8238 | 23 d++; |
pascal@8238 | 24 } |