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.
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
You're right, it's been fixed. My mistake - should have checked the newest available version in the first place.