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

From: Andrey Chernov <ache_at_freebsd.org>
Date: Wed, 25 Nov 2015 18:12:06 +0300
On 25.11.2015 17:35, Baptiste Daroussin wrote:
>> BTW, array size looks suspicious:
>> static wchar_t wab_months[12][MAX_ABMON_WIDTH * 2 * MB_LEN_MAX];
>> what MB_LEN_MAX doing here? This constant is for multiple-bytes encoded,
>> not for wide chars.
> Bad copy/paste sorry it should be "MAX_ABMON_WIDTH * 2"

I don't check deep enough, it seems first array
MAX_ABMON_WIDTH * MB_LEN_MAX + 1
and second one
MAX_ABMON_WIDTH * 2 + 1

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


Received on Wed Nov 25 2015 - 14:12:12 UTC

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