cal in Ubuntu Oneiric ignores locale for start of week

Bug #939772 reported by JamesE
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
bsdmainutils (Ubuntu)
Confirmed
Medium
Unassigned
Nominated for Precise by Rolf Leggewie
Nominated for Trusty by Rolf Leggewie

Bug Description

Being British, I am using the en_GB locale, so I would expect cal to display months where Monday appears as the first day in the week. Instead, it displays Sunday as the first day of the week, thus:

   February 2012
Su Mo Tu We Th Fr Sa
          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

For me, the LANG variable is set to en_GB.UTF-8

It seems that cal might be hardcoded to a US locale where Sunday is always the first day of the week.

Note that this only appears to have happened on Ubuntu Oneiric (11.10).

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: bsdmainutils 8.2.3
ProcVersionSignature: Ubuntu 3.0.0-16.28-generic 3.0.17
Uname: Linux 3.0.0-16-generic x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Thu Feb 23 19:43:12 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: bsdmainutils
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
JamesE (fazchanders) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bsdmainutils (Ubuntu):
status: New → Confirmed
Revision history for this message
Rolf Leggewie (r0lf) wrote :

confirming this regression for precise when compared to lucid

Lucid (works as it should)
$ LC_ALL=en_US.UTF-8 cal
    August 2013
Su Mo Tu We Th Fr Sa
             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
$ LC_ALL=de_DE.UTF-8 cal
    August 2013
Mo Di Mi Do Fr Sa So
          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

Precise (buggy):
$ LC_ALL=C cal
    August 2013
Su Mo Tu We Th Fr Sa
             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
$ LC_ALL=de_DE.UTF-8 cal
    August 2013
So Mo Di Mi Do Fr Sa
             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

tags: added: precise regression-release
Revision history for this message
Rolf Leggewie (r0lf) wrote :

What makes this worse is that "-M" to force the start of the week to Monday does not work as is documented in bug 908233.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

nominating for this to be (eventually) fixed in precise.

Does anybody have a box running raring or saucy to test this? Murata-san, can you try this, please?

Rolf Leggewie (r0lf)
Changed in bsdmainutils (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Andrés Necochea (yayopoint) wrote :

I'm using Trusty and the bug is not solved :(

Rolf Leggewie (r0lf)
tags: added: bionic focal trusty
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.