Bug 2699 - Wrong locale settings for it_IT first day of the week
: Wrong locale settings for it_IT first day of the week
Status: RESOLVED FIXED
Product: Sabayon
Classification: Unclassified
Component: Installed
: 6
: All Sabayon Limbo
: P5 major
: Next Stable
Assigned To: Fabio Erculiani
http://sourceware.org/bugzilla/show_b...
:
Depends on:
Blocks: 2581
  Show dependency treegraph
 
Reported: 2011-09-15 01:40 UTC by micia
Modified: 2011-09-17 17:43 UTC (History)
0 users

See Also:


Attachments
it_IT patch for the above mentioned modifications (389 bytes, patch)
2011-09-17 16:15 UTC, micia
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description micia 2011-09-15 01:40:34 UTC
On Gnome3, with Italian locale settings, the Gnome calendar reports Sunday as the first day of the week. It looks like that applet is built to take its week format from the current locale settings of the system, this means that the current locale reports Sunday as the first day of the week.
This issue probably affects the sys-libs/glibc package.

locale output:
locale
LANG=it_IT.UTF-8
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE="it_IT.UTF-8"
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=

Steps to Reproduce:

1) login in a Gnome3 DE with Italian locale
2) click on the top panel clock

Actual Result:

the leftmost day (beginning of the week)  in the calendar is "dom" (Sunday)

Expected Result:

the leftmost day in the calendar should be "lun" (Monday)

Proposed Fix:
I was able to fix this issue modifying the file:
/usr/share/i18n/locales/it_IT

locating the LC_TIME section, I added, before END LC_TIME:

first_weekday 2
first_workday 2

and ran:
locale-gen

now it works as expected, probably:
/usr/share/i18n/locales/it_IT@euro
is also broken.
Comment 1 Fabio Erculiani Staff 2011-09-17 16:12:40 UTC
Upstream bug in URL.
Comment 2 micia 2011-09-17 16:15:08 UTC
Created attachment 491 [details]
it_IT patch for the above mentioned modifications

Attaching the patch that allowed me to fix this issue.
Comment 3 Sabayon Git Staff 2011-09-17 17:41:32 UTC
Repository  overlay.git
Author      Fabio Erculiani (lxnay AT sabayon.org)
Date        Sat, 17 Sep 2011 17:45:28 +0200
Commit      69ae1b5980534640ac3f4d8d83a38a9eb24aca25
Parents     1ba5254a160e0a036092c1ce30e40d95e5a2d4f7

[sys-libs/glibc] only due to bug 2699, fix first weekday and workday for it_IT
Comment 4 Fabio Erculiani Staff 2011-09-17 17:43:03 UTC
We fixed it here, but upstream should really pick up this fix.