[prev in list] [next in list] [prev in thread] [next in thread] 

List:       coreutils-bug
Subject:    bug#45057: Date has issues with some months in Norwegian
From:       Odne =?UTF-8?Q?Helleb=C3=B8?= <odnehel () gmail ! com>
Date:       2020-12-06 22:27:33
Message-ID: CALPnWOEBoDbicS2PH33HLyvNCOhLPR9tMpA4WOUfjzpzSKZasA () mail ! gmail ! com
[Download RAW message or body]

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@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
>
>
>
>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic