Package: bsdmainutils
Version: 8.0.11
Severity: normal

In my locale Monday is the first day of the week. I haven't tested if
this is reproducible in another locale, using -M instead.
Trying to print the current month:

$ ncal 
    May 2010
    Mo     3 10 17 24 31
    Tu     4 11 18 25
    We     5 12 19 26   
    Th     6 13 20 27
    Fr     7 14 21 28
    Sa  1  8 15 22 29
    Su  2  9 16 23 30

$ ncal -S
    May 2010
    Su     3 10 17 24 31
    Mo     4 11 18 25
    Tu     5 12 19 26   
    We     6 13 20 27
    Th     7 14 21 28
    Fr  1  8 15 22 29
    Sa  2  9 16 23 30

$ ncal -M
    May 2010
    Mo     3 10 17 24 31
    Tu     4 11 18 25
    We     5 12 19 26   
    Th     6 13 20 27
    Fr     7 14 21 28
    Sa  1  8 15 22 29
    Su  2  9 16 23 30


ncal and ncal -M have the same, correct output. 1st of May 2010 is a
Saturday. If I pass in -S though, I'd expect 1st of May 2010 to still
bhe a saturday, even if the last day of the week. So I would expect
something like:

(expected output):
    May 2010
    Su     2  9 16 23 30
    Mo     3 10 17 24 31
    Tu     4 11 18 25   
    We     5 12 29 26
    Th     6 13 20 27
    Fr     7 14 21 28
    Sa  1  8 15 22 29

Instead it changed what day of the week each day is, which is clearly
incorrect. Same happens printing a whole year, with that option.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34rx00 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bsdmainutils depends on:
ii  bsdutils                  1:2.16.2-0     Basic utilities from 4.4BSD-Lite
ii  debianutils               3.2.3          Miscellaneous utilities specific t
ii  libc6                     2.10.2-6       Embedded GNU C Library: Shared lib
ii  libncurses5               5.7+20100313-2 shared libraries for terminal hand

bsdmainutils recommends no packages.

Versions of packages bsdmainutils suggests:
ii  cpp                           4:4.4.3-1  The GNU C preprocessor (cpp)
pn  vacation                      <none>     (no description available)
ii  wamerican [wordlist]          6-3        American English dictionary words 
ii  whois                         5.0.4      an intelligent whois client
ii  witalian [wordlist]           1.7.3-0.1  The Italian dictionary words for /

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to