/bin/ls formatting broken for non-C(?) locales

Andrey Chernov ache at freebsd.org
Sat Nov 21 00:45:40 UTC 2015


On 21.11.2015 3:35, Baptiste Daroussin wrote:

> Here is what I do propose (sorry for the ugly pad_to_col name, if one has better
> please share :D
> 
> https://reviews.freebsd.org/D4239

The whole function is ugly, not only its name. Please no hardcoded
constants assuming some internal encoding knowledge, they are wrong for
non-UTF-8 encodings in any case, use wide chars instead.

BTW, the same 3 chars restriction is in tar, cpio, pax, lots of ftp
clients, i.e. where 'ls' emulated.

-- 
http://ache.vniz.net/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20151121/47c45348/attachment.bin>


More information about the freebsd-current mailing list