GNU bug report logs -
#45057
Date has issues with some months in Norwegian
Previous Next
Reported by: Odne Hellebø <odnehel <at> gmail.com>
Date: Sat, 5 Dec 2020 18:35:01 UTC
Severity: normal
Tags: notabug
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 45057 in the body.
You can then email your comments to 45057 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#45057
; Package
coreutils
.
(Sat, 05 Dec 2020 18:35:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Odne Hellebø <odnehel <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Sat, 05 Dec 2020 18:35:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
This works fine
export LANG=en_GB.utf8
for i in {01..12}
do
mnd=$(date -d "2020-$i-01" +%B)
date -d "01-${mnd:0:3}-2020" +%B
done
But this doesn't work for months may, october, and desember
export LANG=nn_NO.utf8
for i in {01..12}
do
mnd=$(date -d "2020-$i-01" +%B)
date -d "01-${mnd:0:3}-2020" +%B
done
It is also worth noting the difference when your not taking a
substring of the month, works fine with english and more fails with
norwegian.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#45057
; Package
coreutils
.
(Sat, 05 Dec 2020 20:00:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
On Sat, 5 Dec 2020, at 15:00, Odne Hellebø wrote:
> But this doesn't work for months may, october, and desember
> export LANG=nn_NO.utf8
> for i in {01..12}
> do
> mnd=$(date -d "2020-$i-01" +%B)
> date -d "01-${mnd:0:3}-2020" +%B
> done
This is documented behaviour:
https://www.gnu.org/software/coreutils/manual/html_node/General-date-syntax.html
"""
In the current implementation, only English is supported for words and abbreviations like ‘AM’, ‘DST’, ‘EST’, ‘first’, ‘January’, ‘Sunday’, ‘tomorrow’, and ‘year’.
"""
The reason only mai / okt / des fail is that the other months match in English / Norwegian when considering the first three letters.
Cheers,
Phil
januar
februar
mars
april
mai
juni
juli
august
september
oktober
november
desember
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#45057
; Package
coreutils
.
(Sun, 06 Dec 2020 22:30:03 GMT)
Full text and
rfc822 format available.
Message #11 received at 45057 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Thanks for the answer. I'll take more time with info next time.
On Sat, 5 Dec 2020 at 21:00, Philip Rowlands <phr+coreutils <at> dimebar.com>
wrote:
> On Sat, 5 Dec 2020, at 15:00, Odne Hellebø wrote:
>
> > But this doesn't work for months may, october, and desember
> > export LANG=nn_NO.utf8
> > for i in {01..12}
> > do
> > mnd=$(date -d "2020-$i-01" +%B)
> > date -d "01-${mnd:0:3}-2020" +%B
> > done
>
> This is documented behaviour:
>
> https://www.gnu.org/software/coreutils/manual/html_node/General-date-syntax.html
>
> """
> In the current implementation, only English is supported for words and
> abbreviations like ‘AM’, ‘DST’, ‘EST’, ‘first’, ‘January’, ‘Sunday’,
> ‘tomorrow’, and ‘year’.
> """
>
> The reason only mai / okt / des fail is that the other months match in
> English / Norwegian when considering the first three letters.
>
>
> Cheers,
> Phil
>
> januar
> februar
> mars
> april
> mai
> juni
> juli
> august
> september
> oktober
> november
> desember
>
>
>
>
[Message part 2 (text/html, inline)]
Added tag(s) notabug.
Request was from
Paul Eggert <eggert <at> cs.ucla.edu>
to
control <at> debbugs.gnu.org
.
(Thu, 24 Feb 2022 02:43:01 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
45057 <at> debbugs.gnu.org and Odne Hellebø <odnehel <at> gmail.com>
Request was from
Paul Eggert <eggert <at> cs.ucla.edu>
to
control <at> debbugs.gnu.org
.
(Thu, 24 Feb 2022 02:43:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 24 Mar 2022 11:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 5 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.