]> err.no Git - util-linux/commit
cal: fix weekday alignment for certain locales
authorPádraig Brady <P@draigBrady.com>
Fri, 4 Jan 2008 10:44:53 +0000 (10:44 +0000)
committerKarel Zak <kzak@redhat.com>
Thu, 17 Jan 2008 01:21:53 +0000 (02:21 +0100)
commitff87defc0d92c2e95e24e04e1e2b73fc09f7a89f
treec2ea29c113d4a13b46633ab6af7473e75e8a3de2
parentb1edb5102d51d0f916aecb579d694d740d5a6c5b
cal: fix weekday alignment for certain locales

For example this had too much padding: LANG=zh_CN.utf8 cal -j
while this had too little padding:     LANG=hu_HU.utf8 cal
This had invalid chars:                LANG=li_BE.utf8 cal
This had too few chars:                LANG=si_LK.utf8 cal

Note some locales may display with slightly worse alignment
(fa_IR.utf8 for example), but that is only because the terminal
is not merging the combining characters. This happens on
gnome-terminal-2.18.3-1.fc8 at least.

Signed-off-by: Pádraig Brady <P@draigBrady.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/cal.c
tests/expected/ts-cal-1
tests/expected/ts-cal-3
tests/expected/ts-cal-y