Re: [PATCH] cal: Output unaligned with "-3" option and libtermcap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Karel Zak wrote:
> On Thu, Feb 15, 2007 at 01:31:20PM +0000, Pádraig Brady wrote:
>  
>> Sorry I missed the original mail/patch.
>> Can you send again?
> 
> There is a small display error when using cal from util-linux-2.13-pre7
> with the command line "cal -3m".  On Sep 27th 2006 it produced the
> following output (Sep 27th is highlighted):
> 
>     August 2006          September 2006         October 2006
> Mo Tu We Th Fr Sa Su  Mo Tu We Th Fr Sa Su  Mo Tu We Th Fr Sa Su
>     1  2  3  4  5  6               1  2  3                     1
>  7  8  9 10 11 12 13   4  5  6  7  8  9 10   2  3  4  5  6  7  8
> 14 15 16 17 18 19 20  11 12 13 14 15 16 17   9 10 11 12 13 14 15
> 21 22 23 24 25 26 27  18 19 20 21 22 23 24  16 17 18 19 20 21 22
> 28 29 30 31           25 26 27 28 29 30  23 24 25 26 27 28 29
>                                             30 31
> 
> As one can see, the second but last row of October is misaligned because
> the characters used for highlighting are not taken into account when
> aligning the last line of September.

Yes, that is exactly the issue my patch fixes.

Pádraig.
-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux