bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Odne Hellebø
Subject: bug#45057: Date has issues with some months in Norwegian
Date: Sat, 5 Dec 2020 16:00:56 +0100

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]