]> git.ipfire.org Git - thirdparty/util-linux.git/commit - misc-utils/cal.c
cal: don't mix ncurses output functions and printf()
authorKarel Zak <kzak@redhat.com>
Thu, 17 Jan 2013 17:48:16 +0000 (18:48 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 17 Jan 2013 17:48:16 +0000 (18:48 +0100)
commite66ba1bfaf070682e26c1a53e64af1088fea56bc
tree850d72f43ae49493dbd7ba4b50dfe140267e80f2
parent620d3f2dc75e38e43de1ba980b9842c02d78efe1
cal: don't mix ncurses output functions and printf()

Fedora 18 (ncurses-libs-5.9-7.20121017, glibc-2.16-28):

$ 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

Not sure where is the problem, but it's too fragile to mix two
output methods in one code.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=896447
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/cal.c