Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Nov 2015 18:12:06 +0300
From:      Andrey Chernov <ache@freebsd.org>
To:        Baptiste Daroussin <bapt@freebsd.org>
Cc:        Ed Schouten <ed@nuxi.nl>, Jilles Tjoelker <jilles@stack.nl>, "Sergey V. Dyatko" <sergey.dyatko@gmail.com>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: /bin/ls formatting broken for non-C(?) locales
Message-ID:  <5655CFC6.7010805@freebsd.org>
In-Reply-To: <20151125143501.GD77370@ivaldir.etoilebsd.net>
References:  <20151120122352.GA5751@stack.nl> <20151121003541.GF21071@ivaldir.etoilebsd.net> <CABh_MK=cz-zB7krcnKjhqfW9VnwjSmuaZ9%2BAETQiLy3AsHq_vw@mail.gmail.com> <5650DACA.2090501@freebsd.org> <20151125001513.GC70014@ivaldir.etoilebsd.net> <56550F69.8050609@freebsd.org> <20151125125325.GB77370@ivaldir.etoilebsd.net> <5655B8D9.8060805@freebsd.org> <20151125135059.GC77370@ivaldir.etoilebsd.net> <5655C059.8010701@freebsd.org> <20151125143501.GD77370@ivaldir.etoilebsd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--7n3MAwu3NM0Wp1lbrUk4ft82EE439kBoe
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

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 encode=
d,
>> 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

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


--7n3MAwu3NM0Wp1lbrUk4ft82EE439kBoe
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEcBAEBCAAGBQJWVc/GAAoJEKUckv0MjfbKQ24H+wRJg/Swcao25ExrDeqxySXz
MAhUe7dVdLhR7i/oQCCVkT4ARaVa9K89C/AYnkL+d8zT69pukTvFaVfT6/ZVmMVO
Z4ICuguBti6/mzdhFY8e2Vsp1qVTVJR/K9vWGO5tYR5l9vbyZynxWS5bQSdNXYC9
naCrKYiS+BN5R6l7s/mwbqP3dAGE8PVdRM3MoQazIueeUrhkNUV9BSycztgsIRjF
DISUw1yM6maF4Zkx3vmS5UAhKJZfp7KxL2TtxjlY5d/44txqwN/IuQoVClV7jyqL
wo01fELeglCc4qR7Gisrf5L6x8ch6K44qJCNIVOp0q511+RVRx/Y9BX1wp/5Xyg=
=99Gk
-----END PGP SIGNATURE-----

--7n3MAwu3NM0Wp1lbrUk4ft82EE439kBoe--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5655CFC6.7010805>