bug#45057: Date has issues with some months in Norwegian

2020-12-06 Thread Odne Hellebø
Thanks for the answer. I'll take more time with info next time. On Sat, 5 Dec 2020 at 21:00, Philip Rowlands 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 > >

bug#45057: Date has issues with some months in Norwegian

2020-12-05 Thread Philip Rowlands
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/s

bug#45057: Date has issues with some months in Norwegian

2020-12-05 Thread Odne Hellebø
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-${m