> On Tue, Jan 04, 2011 at 09:14:51PM +0300, Alexander Polakov wrote: > > Hi, > > > > I wonder if there any plans on adding multibyte support for ls(1)? > > Or maybe there's a reason why it's not a great idea (which I am not > > aware of)? > > Anyway, here's a patch I have. It's based on DragonFlyBSD's ls. > > > > Any locale stuff added to applications that are used on the ramdisk > (bsd.rd) must be inside #ifndef SMALL. The ls binary is linked > statically so we need to prevent it from wasting space by pulling citrus > stuff onto the ramdisk. > > More importantly, there is an alleged bug in our wcwidth() > implementation. I haven't had time to investigate, but it has been > pointed out on separate occasions, by Jordi Beltran Creix and by nicm@. > Test program (from Jordi):
Hi! Any plans of committing this? [1] I've been using these diffs for quite some time now, and it is really convenient and great to see the utf-8 filenames properly in ls' output. [1]: http://marc.info/?l=openbsd-tech&m=129416906310823&w=2 Dani -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F