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

From: Andrey Chernov <ache_at_freebsd.org>
Date: Sat, 21 Nov 2015 23:57:46 +0300
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/
Received on Sat Nov 21 2015 - 19:57:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:01 UTC