Subject: bin/8539: cal(1) displays the columns with a wrong first day of a week
To: None <gnats-bugs@gnats.netbsd.org>
From: Bernd Ernesti <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 10/03/1999 08:07:51
>Number: 8539
>Category: bin
>Synopsis: cal(1) displays the columns with a wrong first day of a week
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Oct 3 08:05:03 1999
>Last-Modified:
>Originator: Bernd Ernesti
>Organization:
>Release: NetBSD-current 30-09-1999
>Environment:
System: NetBSD arresum.inka.de 1.4K NetBSD 1.4K (ARRESUM) #396: Thu Sep 30 14:07:00 MEST 1999 bernd@arresum.inka.de:/home/work/obj_i386/src.i386/sys/arch/i386/compile/ARRESUM i386
>Description:
Not all real calenders have the Sunday as the first day of the week,
but cal(1) is hardcoded that Sunday is the first day of the week.
>How-To-Repeat:
Look at the cal(1) output and notice that the week begins with
the Sunday, which maybe correct in some locations but not at all:
> cal
October 1999
S M Tu W Th F S
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
>Fix:
- Change the default first day of the week
- or add an option to look at the locale or timezone informations
- or add an flag to specify the first day of a week
>Audit-Trail:
>Unformatted: