Fix ls -l alignement with new locales
authorbapt <bapt@FreeBSD.org>
Mon, 7 Dec 2015 20:48:28 +0000 (20:48 +0000)
committerbapt <bapt@FreeBSD.org>
Mon, 7 Dec 2015 20:48:28 +0000 (20:48 +0000)
commit4ede56bd51a51ee0c426eba3b845bf5c89fb4fc9
treec4b550513f1a9a0f790c762068f64a40e47e9658
parentb4974472b45031a77d86cdefbe75d580ede653fb
Fix ls -l alignement with new locales

Latest update of locales introduced abbreviated month that follows the regionale
rules meaning that they can be of variable length instead of being arbitrary
truncated to top 3 characters.

To fix alignement, ls now computes the visible length of the abbreviated month,
pads the shorter month with spaces in order to make sure everything is properly
aligned

Reviewed by: ache, ed, jilles
Differential Revision: https://reviews.freebsd.org/D4239
bin/ls/print.c