Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275822 - Output of `cal 2009` (util-linux-2.13.1.1) not aligned properly
Summary: Output of `cal 2009` (util-linux-2.13.1.1) not aligned properly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-29 12:47 UTC by Krzysztof Borowczyk
Modified: 2009-06-29 14:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Borowczyk 2009-06-29 12:47:01 UTC
cal (/usr/bin/cal, util-linux-2.13.1.1) does not properly align columns. On the first column of months everything looks OK, but on the second and third weekday labels are shifted one and two columns to the left. It happens with Polish locales (pl_PL).
I think it's because Sunday is described by one letter (N) - in the English locales every day has two letter short form.

My proposition would be to use 'Nd' for Sunday in Polish locales which is also good and somehow more standard than 'N'.

Reproducible: Always

Steps to Reproduce:
1. Switch to polish locales (export LC_ALL=pl_PL)
2. execute `cal 2009` in terminal
Actual Results:  
Labels of days are shifted to the left which makes calendar unreadable.

Expected Results:  
Day labels should be displayed on proper columns according to dates displayed below them.
Comment 1 Rafał Mużyło 2009-06-29 13:18:21 UTC
There seem to be at least two problems with this "proposition":
1. it seems to be working correctly in 2.15.1 (if I read ChangeLog
correctly fixed in 2.14)
2. as far as I can tell, both full names and abbreviations come
straight from glibc locales
Comment 2 Krzysztof Borowczyk 2009-06-29 14:59:25 UTC
You're right, it's been fixed. My mistake - should have checked the newest available version in the first place.