# HG changeset patch # User Christopher Rogers # Date 1289796961 0 # Node ID a52abbd853dc8fda1937a313ef6d579e957c3d04 # Parent 4a0bbe328719df68f617e81fbfaf72310e6eedc1 Added printable patch fix to busybox. Now ls command can display the utf-8 filename. Thanks to a bug report in mailing list for the patch. diff -r 4a0bbe328719 -r a52abbd853dc busybox/receipt --- a/busybox/receipt Sun Nov 14 23:09:21 2010 +0000 +++ b/busybox/receipt Mon Nov 15 04:56:01 2010 +0000 @@ -29,6 +29,7 @@ depmod.u zmodules.u usage.u +printable.u EOT cp ../stuff/$PACKAGE-$VERSION.config .config make oldconfig diff -r 4a0bbe328719 -r a52abbd853dc busybox/stuff/busybox-1.17.3-printable.u --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/busybox/stuff/busybox-1.17.3-printable.u Mon Nov 15 04:56:01 2010 +0000 @@ -0,0 +1,24 @@ +fix the bug of 'ls cannot display utf-8 filenames' +--- busybox-1.17.3/libbb/printable_string.c ++++ busybox-printable/libbb/printable_string.c +@@ -31,8 +31,8 @@ + } + if (c < ' ') + break; +- if (c >= 0x7f) +- break; ++ /* if (c >= 0x7f) */ ++ /* break; */ + s++; + } + +@@ -45,7 +45,8 @@ + unsigned char c = *d; + if (c == '\0') + break; +- if (c < ' ' || c >= 0x7f) ++ /* if (c < ' ' || c >= 0x7f) */ ++ if (c < ' ') + *d = '?'; + d++; + }