wok rev 7271

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.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Nov 15 04:56:01 2010 +0000 (2010-11-15)
parents 4a0bbe328719
children bfa0622138b5
files busybox/receipt busybox/stuff/busybox-1.17.3-printable.u
line diff
     1.1 --- a/busybox/receipt	Sun Nov 14 23:09:21 2010 +0000
     1.2 +++ b/busybox/receipt	Mon Nov 15 04:56:01 2010 +0000
     1.3 @@ -29,6 +29,7 @@
     1.4  depmod.u
     1.5  zmodules.u
     1.6  usage.u
     1.7 +printable.u
     1.8  EOT
     1.9      cp ../stuff/$PACKAGE-$VERSION.config .config
    1.10      make oldconfig
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/busybox/stuff/busybox-1.17.3-printable.u	Mon Nov 15 04:56:01 2010 +0000
     2.3 @@ -0,0 +1,24 @@
     2.4 +fix the bug of 'ls cannot display utf-8 filenames'
     2.5 +--- busybox-1.17.3/libbb/printable_string.c
     2.6 ++++ busybox-printable/libbb/printable_string.c
     2.7 +@@ -31,8 +31,8 @@
     2.8 + 		}
     2.9 + 		if (c < ' ')
    2.10 + 			break;
    2.11 +-		if (c >= 0x7f)
    2.12 +-			break;
    2.13 ++		/* if (c >= 0x7f) */
    2.14 ++			/* break; */
    2.15 + 		s++;
    2.16 + 	}
    2.17 + 
    2.18 +@@ -45,7 +45,8 @@
    2.19 + 			unsigned char c = *d;
    2.20 + 			if (c == '\0')
    2.21 + 				break;
    2.22 +-			if (c < ' ' || c >= 0x7f)
    2.23 ++			/* if (c < ' ' || c >= 0x7f) */
    2.24 ++			if (c < ' ')
    2.25 + 				*d = '?';
    2.26 + 			d++;
    2.27 + 		}