wok-current annotate busybox/stuff/busybox-1.18-printable.u @ rev 8268

Fix: pack swrast drivers into mesa-dri
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Jan 30 05:22:41 2011 +0100 (2011-01-30)
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 }