cal don't start week at monday with french locale

Bug #97450 reported by Jerikojerk
4
Affects Status Importance Assigned to Milestone
bsdmainutils (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

install french localized version of edgy.

just tape calc in a shell. name of day are in french but first day is sunday.

$ cal
     mars 2007
di lu ma me je ve 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

Same problem with Hungarian:
                               2008

       január február március
v h k sz cs p sz v h k sz cs p sz v h k sz cs p sz
       1 2 3 4 5 1 2 1
 6 7 8 9 10 11 12 3 4 5 6 7 8 9 2 3 4 5 6 7 8
13 14 15 16 17 18 19 10 11 12 13 14 15 16 9 10 11 12 13 14 15
20 21 22 23 24 25 26 17 18 19 20 21 22 23 16 17 18 19 20 21 22
27 28 29 30 31 24 25 26 27 28 29 23 24 25 26 27 28 29
                                              30 31

Also the abbreviations of the names of the days are not properly alligned with the dates.

Tags: cal
Jerikojerk (jerikojerk)
description: updated
Revision history for this message
costales (costales) wrote :

I live in Spain.
I prefer a English version of Ubuntu, then I install as default environment (USA Language).
The first day of week is Sunday, and in Spain the first day is Monday :(
I prefer the english in the operating system, but I prefer Monday as first day in the applet of Gnome Bar (Evolution works well).

NAR (ethanl)
description: updated
Revision history for this message
Erik Iohansson (erjohan-gmail) wrote : It doesn't use locales

Use "cal -m" then it will display mondays as the first day of the week. cal doesnt use locale, so the question is wether it's a good idea to fix this or not. I mean it might break stuff?

ldd /usr/bin/cal
        linux-gate.so.1 => (0xffffe000)
        libncurses.so.5 => /lib/libncurses.so.5 (0xb7f5b000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e11000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7e0c000)
        /lib/ld-linux.so.2 (0xb7fb3000)

Revision history for this message
ooze (zoe-gauthier) wrote :

Everything works for me, as long as your display preference agrees with the locale setting. If it is reproducible, what specific steps should we take to recreate this bug? I am using bsdmainutils 6.1.10ubuntu3.

Here are the "first_weekday" values for the en, es, fr, and hu locales, where 1 means Sunday, and 2 means Monday :

en_AU:first_weekday 1
en_CA:first_weekday 1
en_DK:first_weekday 2
en_GB:first_weekday 1
en_HK:first_weekday 1
en_IE:first_weekday 2
en_IN:first_weekday 1
en_NZ:first_weekday 1
en_PH:first_weekday 1
en_SG:first_weekday 1
en_US:first_weekday 1
en_ZA:first_weekday 1
es_AR:first_weekday 2
es_BO:first_weekday 2
es_CL:first_weekday 2
es_CO:first_weekday 2
es_CR:first_weekday 1
es_DO:first_weekday 2
es_EC:first_weekday 2
es_ES:first_weekday 2
es_GT:first_weekday 2
es_HN:first_weekday 2
es_MX:first_weekday 2
es_NI:first_weekday 2
es_PA:first_weekday 2
es_PE:first_weekday 2
es_PR:first_weekday 2
es_PY:first_weekday 2
es_SV:first_weekday 2
es_US:first_weekday 1
es_UY:first_weekday 2
es_VE:first_weekday 2
fr_BE:first_weekday 1
fr_CA:first_weekday 1
fr_CH:first_weekday 1
fr_FR:first_weekday 1
fr_LU:first_weekday 1
hu_HU:first_weekday 1

You can check your yourself in the /usr/share/i18n/locales directory. For example, cal outputs the following calendars :

$ LANG=fr_CA.UTF-8 cal
     mars 2009
di lu ma me je ve 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_TIME=es_ES.UTF-8 cal
     marzo 2009
lu ma mi ju vi sá do
                   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

Revision history for this message
ooze (zoe-gauthier) wrote :

Marking as incomplete since the latest package seems to work as expected.

Changed in bsdmainutils:
status: New → Incomplete
ooze (zoe-gauthier)
Changed in bsdmainutils (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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