FS#8530 - [glibc-2.7] first weekday is wrong for some locales

Attached to Project: Arch Linux
Opened by Roman Kyrylych (Romashka) - Tuesday, 06 November 2007, 14:08 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 08 November 2007, 22:16 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Jan de Groot (JGC)
Andreas Radke (AndyRTR)
Architecture All
Severity High
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

First day of week for some locales is wrong (confirmed for uk_UA and et-EE, but I think there are much more).
It is set to Tuesday, should be Monday.

$ grep first_ < /usr/share/i18n/locales/uk_UA
first_weekday 2
first_workday 1

first_workday is correct here, while first_weekday should be 1.
It is very strange that they are different.
I could understand a bug if first_weekday was Sunday and first_workday was Monday (as is the case for some locales, e.g. en_US).
But what caused these values to be set to Tuesday and Monday which is absolutely stupid?
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Thursday, 08 November 2007, 22:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  weekday patch is disabled from 2.7-6 on. if any locale needs it back please report it.
Comment by Roman Kyrylych (Romashka) - Tuesday, 06 November 2007, 14:19 GMT
Found it! At the end of weekday.patch:

--- localedata/locales/uk_UA.orig
+++ localedata/locales/uk_UA
@@ -1015,7 +1015,7 @@

% Define the first day of the week to be displayed in a calendar.
% This weekday is relative to the date defined in the <week> keyword.
-first_weekday 1
+first_weekday 2

% Define the first workday relative to the <week> keyword
first_workday 1

This change is stupid!
Please remove this from patch.

Same for et_EE locale.
Aren't pl_PL, de_DE, en_GB, fr_FR, hu_HU, sk_SK broken too? (I checked only those that are broken by weekday.patch, others may already exist)

It's strange to see this in diff for them:
-first_weekday 1
+first_weekday 2
first_workday 1
as opposing to this (correct, I think):
-first_weekday 1
-first_workday 1
+first_weekday 2
+first_workday 2

BTW, please update PKGBUILD:
ftp://ftp.archlinux.org/other/glibc-patches-2.7-3.tar.bz2 is wrong URL,
ftp://ftp.archlinux.org/other/glib/glibc-patches-2.7-3.tar.bz2 is the right one.

Loading...