wok-tiny diff busybox/stuff/busybox-1.18-printable.u @ rev 0

Add busybox
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 01 09:36:49 2011 +0100 (2011-02-01)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/busybox/stuff/busybox-1.18-printable.u	Tue Feb 01 09:36:49 2011 +0100
     1.3 @@ -0,0 +1,24 @@
     1.4 +fix the bug of 'ls cannot display utf-8 filenames'
     1.5 +--- busybox-1.17.3/libbb/printable_string.c
     1.6 ++++ busybox-printable/libbb/printable_string.c
     1.7 +@@ -31,8 +31,8 @@
     1.8 + 		}
     1.9 + 		if (c < ' ')
    1.10 + 			break;
    1.11 +-		if (c >= 0x7f)
    1.12 +-			break;
    1.13 ++		/* if (c >= 0x7f) */
    1.14 ++			/* break; */
    1.15 + 		s++;
    1.16 + 	}
    1.17 + 
    1.18 +@@ -45,7 +45,8 @@
    1.19 + 			unsigned char c = *d;
    1.20 + 			if (c == '\0')
    1.21 + 				break;
    1.22 +-			if (c < ' ' || c >= 0x7f)
    1.23 ++			/* if (c < ' ' || c >= 0x7f) */
    1.24 ++			if (c < ' ')
    1.25 + 				*d = '?';
    1.26 + 			d++;
    1.27 + 		}