Bug 800325 - cal display wrong first day of the week
Summary: cal display wrong first day of the week
Keywords:
Status: CLOSED DUPLICATE of bug 624296
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeff Law
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-06 10:23 UTC by Vasiliy Glazov
Modified: 2016-11-24 16:00 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-26 13:46:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vasiliy Glazov 2012-03-06 10:23:56 UTC
Description of problem:
cal display wrong first day of the week if LC_TIME="ru_UA.utf8"
It show first Sunday, but must be Monday

Version-Release number of selected component (if applicable):
util-linux-2.20.1-2.2.fc16

How reproducible:
always

Steps to Reproduce:
1. LC_TIME="ru_UA.utf8" cal
2.
3.
  
Actual results:
      Март 2012     
Вс Пн Вт Ср Чт Пт Су
             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

Expected results:
      Март 2012     
Пн Вт Ср Чт Пт Сб Вс
          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

Additional info:

Comment 1 Karel Zak 2012-03-26 10:18:44 UTC
According to locale(1) the first_weekday of ru_UA is Sunday:

$ LC_TIME="ru_UA.utf8" locale -k  first_weekday first_workday
first_weekday=1
first_workday=2

it seems that the first_* keywords are not defined in /usr/share/i18n/locales/ru_UA (and the default is POSIX where first_weekday=1).


see for example ru_RU where is the correct definition:

$ LC_TIME="ru_RU.utf8" locale -k  first_weekday first_workday
first_weekday=2
first_workday=2

$ LC_TIME="ru_RU.utf8" cal
      Март 2012     
Пн Вт Ср Чт Пт Сб Вс
          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


It does not seem like a cal(1) bug, reassigning to glibc.

Comment 2 Jeff Law 2012-03-26 13:46:58 UTC
Already fixed in rawhide/f17.  Duplcate of 624296.

*** This bug has been marked as a duplicate of bug 624296 ***


Note You need to log in before you can comment on or make changes to this bug.