public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* BUG: cal prints bad month headers
@ 2014-05-27  9:45 Ruediger Meier
  2014-05-27 10:50 ` Ruediger Meier
  0 siblings, 1 reply; 6+ messages in thread
From: Ruediger Meier @ 2014-05-27  9:45 UTC (permalink / raw)
  To: util-linux; +Cc: Sami Kerola

Hi,

I have a system where "cal -ym" diff looks like this: 
------------
 Gregorian - Monday-based week
-                               2006
+                               2006                                      January               February                 March               April                   
May                   June                July                  August                September            October               November               December
+

-       January               February                 March
 Mo Tu We Th Fr Sa Su   Mo Tu We Th Fr Sa Su   Mo Tu We Th Fr Sa Su
                    1          1  2  3  4  5          1  2  3  4  5
  2  3  4  5  6  7  8    6  7  8  9 10 11 12    6  7  8  9 10 11 12
@@ -10,7 +10,7 @@
 16 17 18 19 20 21 22   20 21 22 23 24 25 26   20 21 22 23 24 25 26
 23 24 25 26 27 28 29   27 28                  27 28 29 30 31
 30 31
-        April                   May                   June
+
 Mo Tu We Th Fr Sa Su   Mo Tu We Th Fr Sa Su   Mo Tu We Th Fr Sa Su
                 1  2    1  2  3  4  5  6  7             1  2  3  4
  3  4  5  6  7  8  9    8  9 10 11 12 13 14    5  6  7  8  9 10 11
@@ -18,7 +18,7 @@
 17 18 19 20 21 22 23   22 23 24 25 26 27 28   19 20 21 22 23 24 25
 24 25 26 27 28 29 30   29 30 31               26 27 28 29 30

-        July                  August                September
+
 Mo Tu We Th Fr Sa Su   Mo Tu We Th Fr Sa Su   Mo Tu We Th Fr Sa Su
                 1  2       1  2  3  4  5  6                1  2  3
  3  4  5  6  7  8  9    7  8  9 10 11 12 13    4  5  6  7  8  9 10
@@ -26,7 +26,7 @@
 17 18 19 20 21 22 23   21 22 23 24 25 26 27   18 19 20 21 22 23 24
 24 25 26 27 28 29 30   28 29 30 31            25 26 27 28 29 30
 31
-       October               November               December
+
 Mo Tu We Th Fr Sa Su   Mo Tu We Th Fr Sa Su   Mo Tu We Th Fr Sa Su
                    1          1  2  3  4  5                1  2  3
  2  3  4  5  6  7  8    6  7  8  9 10 11 12    4  5  6  7  8  9 10
--------------------

This happens only if output is redirected into a file
$ ./cal -ym > bla ;cat bla
It looks good in terminal.  

Reverting 95f4adde (plus 0c6dc4b9 and 4a7424a5) fixes the problem.

The system is a Fedora 18, ppc64. I can't reproduce it on any other
ppc64 system. Unfortunately I don't have any other Fedora 18 for
testing.

cu,
Rudi

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-05-28 11:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-27  9:45 BUG: cal prints bad month headers Ruediger Meier
2014-05-27 10:50 ` Ruediger Meier
2014-05-27 11:29   ` Pádraig Brady
2014-05-27 13:07   ` [PATCH] cal: all output must use my_putstring Ruediger Meier
2014-05-27 14:12     ` Karel Zak
2014-05-27 14:50       ` Ruediger Meier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox