[ILUG] the first day of the week?
Ciaran Johnston
cj at nologic.org
Wed Mar 4 12:45:53 GMT 2009
Pádraig Brady wrote:
> A. Dreyer - ILUG wrote:
>> On Wed, 04 Mar 2009, Pádraig Brady wrote:
>>
>>> As the following script shows, the locale for IE on linux
>>> has Sunday as the first day of the week. I always think
>>> of Sunday as the last day and the UK locale concurs.
>>> Where could I lookup the "right" answer?
>>>
>>> for LANG in en_IE en_GB; do
>>> date -d"$(locale week-1stday) +$(($(locale first_weekday)-1))day" +%a
>>> done
>>>
>>> Sun
>>> Mon
>>
>> Hi,
>>
>> What happens if you replace LANG with LC_TIME?
>
> Weirdness with variable propagate.
> This shows the issue succinctly:
>
> old$ LC_TIME=en_IE.utf8 locale week-1stday first_weekday
> 19971130
> 1
>
> new$ LC_TIME=en_IE.utf8 locale week-1stday first_weekday
> 19971130
> 2
Check the contents of /usr/share/i18n/locales/en_IE
On a Debian Etch system, I have:
LC_TIME
% copy "en_GB"
<some unicode stuff for days of week etc>
% FIXME: found in CLDR
first_weekday 2
END LC_TIME
On a Fedora 9 box I have:
LC_TIME
% copy "en_GB"
<some unicode stuff for days of week etc>
END LC_TIME
In other words, nothing specific to en_IE for first_weekday on Fedora.
Interestingly both files (en_IE on Fedora and on Debian) claim to be the
same revision - 4.4 - and to have the same author and source. Is this
another example of Debian "fixing" things without informing upstream?
What systems are you comparing?
/Ciaran.
More information about the ILUG
mailing list