Description of problem: This is a regression, worked well in Fedora 17. I am not sure, if this is a bug of cal or ncurses. Version-Release number of selected component (if applicable): util-linux-2.22.1-2.4.fc18.x86_64 ncurses-5.9-7.20121017.fc18.x86_64 How reproducible: always Steps to Reproduce: 1. cal | cat Actual results: January 2013 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 1213 14 15 16 17 18 1920 21 22 23 24 25 2627 28 29 30 31 Expected results: January 2013 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Additional info: As you see, newlines are present, but not properly written between text, but they are at end of text.
Fixed by upstream commit e66ba1bfaf070682e26c1a53e64af1088fea56bc,fedora package will be updated ASAP. Thanks!
*** Bug 901935 has been marked as a duplicate of this bug. ***
*** Bug 905079 has been marked as a duplicate of this bug. ***
Define "ASAP". 14 days and counting. Please fix.
Me too. Still looking for that elusive update in cal | ncurses | ?
For those who needs a workaround, Karel suggested this: script -qc "cal" /dev/null | cat Works for me until it will be fixed in Fedora.
Well, if we're posting workarounds... expect -c 'log_user 0; spawn cal 2 2013; interact;' :-)
This is what I'm using: script -qc "cal $*" /dev/null | perl -pe 's/\x{1b}\[.*m// ;' The perl expression strips off the escape sequence that highlights today's date. There really should be an option to disable that...
Why should cal need to use ncurses? It used to generate its output left to right, top to bottom. It should still work on a paper teletype.
It uses curses to highlight the current day.
It just seems a bit of sledgehammer to have the whole program in curses mode merely to turn highlighting on and off around the current day.
util-linux-2.22.2-3.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/util-linux-2.22.2-3.fc18
Sorry for the delay, I was ill last week...
util-linux-2.22.2-3.fc18 works for me, thank you. I've added positive karma.
Package util-linux-2.22.2-3.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing util-linux-2.22.2-3.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-1934/util-linux-2.22.2-3.fc18 then log in and leave karma (feedback).
util-linux-2.22.2-3.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.