wok-next annotate busybox/stuff/busybox-1.18.1-printable.u @ rev 7755

Up busybox (1.18.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Dec 21 15:38:35 2010 +0100 (2010-12-21)
parents
children
rev   line source
pascal@7755 1 fix the bug of 'ls cannot display utf-8 filenames'
pascal@7755 2 --- busybox-1.17.3/libbb/printable_string.c
pascal@7755 3 +++ busybox-printable/libbb/printable_string.c
pascal@7755 4 @@ -31,8 +31,8 @@
pascal@7755 5 }
pascal@7755 6 if (c < ' ')
pascal@7755 7 break;
pascal@7755 8 - if (c >= 0x7f)
pascal@7755 9 - break;
pascal@7755 10 + /* if (c >= 0x7f) */
pascal@7755 11 + /* break; */
pascal@7755 12 s++;
pascal@7755 13 }
pascal@7755 14
pascal@7755 15 @@ -45,7 +45,8 @@
pascal@7755 16 unsigned char c = *d;
pascal@7755 17 if (c == '\0')
pascal@7755 18 break;
pascal@7755 19 - if (c < ' ' || c >= 0x7f)
pascal@7755 20 + /* if (c < ' ' || c >= 0x7f) */
pascal@7755 21 + if (c < ' ')
pascal@7755 22 *d = '?';
pascal@7755 23 d++;
pascal@7755 24 }