Bug 1282011

Summary: first_weekday wrong for hr_HR locale
Product: [Fedora] Fedora Reporter: srakitnican <samuel.rakitnican>
Component: glibcAssignee: Florian Weimer <fweimer>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: arjun.is, codonell, fweimer, jakub, law, mfabian, pfrankli, siddhesh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glibc-2.22-16.fc23, glibc-2.23.1-7.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-15 04:51:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
[hr_HR.patch] first_weekday and first_workday patch
none
first_weekday-fix.sh
none
first_weekday-fix.sh none

Description srakitnican 2015-11-14 08:57:56 UTC
Created attachment 1093989 [details]
[hr_HR.patch] first_weekday and first_workday patch

With following configuration (American language and Croatian formats) first weekday in calendar is wrong (Sunday) as should be Monday.

https://en.wikipedia.org/wiki/Workweek_and_weekend#Croatia

$ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC=hr_HR.utf8
LC_TIME=hr_HR.utf8
LC_COLLATE="en_US.utf8"
LC_MONETARY=hr_HR.utf8
LC_MESSAGES="en_US.utf8"
LC_PAPER=hr_HR.utf8
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT=hr_HR.utf8
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

Problem is that first_weekday and first_workday are not defined in LC_TIME section of locale file. I can fix it for myself by applying attached patch and recompiling locale.

# patch /usr/share/i18n/locales/hr_HR < hr_HR.patch
# localedef -v -c -i hr_HR -f UTF-8 hr_HR.UTF-8

Comment 1 srakitnican 2015-11-14 10:10:46 UTC
Created attachment 1093990 [details]
first_weekday-fix.sh

Apply fix automatically with this simple script until upstream is fixed.

Comment 2 Smola 2016-01-23 11:32:10 UTC
I did not use the script but have done it manually in F22. For GNOME, a shell quick reload is needed afterwards.
Upgrade to F23 had overwriten the changes so I hope this makes it to F24.

Comment 3 srakitnican 2016-03-25 14:31:53 UTC
Created attachment 1140318 [details]
first_weekday-fix.sh

New version of patching script addressing recent glibc splitting for Fedora 24.

Comment 4 Fedora Update System 2016-05-11 11:19:48 UTC
glibc-2.22-16.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-b0e67c88b5

Comment 5 Fedora Update System 2016-05-11 13:56:16 UTC
glibc-2.23.1-7.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-b321728d74

Comment 6 Fedora Update System 2016-05-11 13:56:38 UTC
glibc-2.23.1-7.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-b321728d74

Comment 7 Fedora Update System 2016-05-12 09:34:14 UTC
glibc-2.22-16.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-b0e67c88b5

Comment 8 Fedora Update System 2016-05-12 09:44:36 UTC
glibc-2.23.1-7.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-b321728d74

Comment 9 Fedora Update System 2016-05-12 20:53:37 UTC
glibc-2.22-16.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2016-05-14 23:30:34 UTC
glibc-2.23.1-7.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.