GNU bug report logs - #45057
Date has issues with some months in Norwegian

Previous Next

Package: coreutils;

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.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Odne Hellebø <odnehel <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Date has issues with some months in Norwegian
Date: Sat, 5 Dec 2020 16:00:56 +0100
[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)]

This bug report was last modified 3 years and 146 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.