/bin/ls formatting broken for non-C(?) locales
Andrey Chernov
ache at freebsd.org
Sat Nov 21 20:57:59 UTC 2015
On 21.11.2015 15:18, Ed Schouten wrote:
> Hi Baptiste,
>
> I suppose you should use the wcswidth() function somewhere to compute
> the visible width of the month name. Some characters may be
> double-width, others may have no effective width at all.
>
I agree. Checking error return of wide chars functions with some
fallback will be good too.
--
http://ache.vniz.net/
More information about the freebsd-current
mailing list