GNU bug report logs - #19856
Bad month translation printed with date command in Greek locale

Previous Next

Package: coreutils;

Reported by: "Nick & John" <levelwol <at> gmail.com>

Date: Fri, 13 Feb 2015 17:13:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: "Nick & John" <levelwol <at> gmail.com>
Subject: bug#19856: closed (Re: bug#19856: Bad month translation printed
 with date command in Greek locale)
Date: Tue, 06 Mar 2018 23:24:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#19856: Bad month translation printed with date command in Greek locale

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 19856 <at> debbugs.gnu.org.

-- 
19856: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19856
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Rafal Luzynski <digitalfreak <at> lingonborough.com>
Cc: 19856-done <at> debbugs.gnu.org
Subject: Re: bug#19856: Bad month translation printed with date command in
 Greek locale
Date: Tue, 6 Mar 2018 15:23:40 -0800
[Message part 3 (text/plain, inline)]
On 03/06/2018 02:42 PM, Rafal Luzynski wrote:
> So the only thing that needs to be done for coreutils is to bump the
> version of Gnulib module used and make sure that the most recent glibc
> is used.

Thanks for letting us know. I installed the attached into coreutils 
master and marking this bug as done, since this is all that should be 
needed as far as coreutils itself is concerned.

[0001-build-update-gnulib-submodule-to-latest.patch (text/x-patch, attachment)]
[Message part 5 (message/rfc822, inline)]
From: "Nick & John" <levelwol <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Bad month translation printed with date command in Greek locale
Date: Fri, 13 Feb 2015 15:46:48 +0200
Hello we are Nick Barkas and Ioannis Barkas from Greece. There is an
annoying error in the date command for quite some time when using
Greek locale.
If date is instructed to print month and day of month, the translation
is wrong and looks funny...
 You have to be able to write Greek in order to understand it and
since the bug exists we assume no one from coreutils developers knows
Greek.
 As a result we will explain every month in detail as it will be Greek
to you. Remove "LC_TIME=el_GR.UTF-8" from the commands to get the date
in English.

This is what you get with "B Y" (month year), which is correct:
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-01-01"
Ιανουάριος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-02-01"
Φεβρουάριος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-03-01"
Μάρτιος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-04-01"
Απρίλιος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-05-01"
Μάιος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-06-01"
Ιούνιος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-07-01"
Ιούλιος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-08-01"
Αύγουστος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-09-01"
Σεπτέμβριος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-10-01"
Οκτώβριος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-11-01"
Νοέμβριος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-12-01"
Δεκέμβριος 2015

This is what you get with "d B Y" (month year), which is wrong:
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-01-01"
01 Ιανουάριος 2015
damn <at> rsee:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-02-01"
01 Φεβρουάριος 2015
damn <at> rsee:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-03-01"
01 Μάρτιος 2015
damn <at> rsee:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-04-01"
01 Απρίλιος 2015
damn <at> rsee:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-05-01"
01 Μάιος 2015
damn <at> rsee:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-06-01"
01 Ιούνιος 2015
damn <at> rsee:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-07-01"
01 Ιούλιος 2015
damn <at> rsee:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-08-01"
01 Αύγουστος 2015
damn <at> rsee:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-09-01"
01 Σεπτέμβριος 2015
damn <at> rsee:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-10-01"
01 Οκτώβριος 2015
damn <at> rsee:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-11-01"
01 Νοέμβριος 2015
damn <at> rsee:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-12-01"
01 Δεκέμβριος 2015

Here is what the date command should print with "d B Y" (month year),
in el_GR.UTF-8 locale:
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-01-01"
01 Ιανουαρίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-02-01"
01 Φεβρουαρίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-03-01"
01 Μαρτίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-04-01"
01 Απριλίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-05-01"
01 Μαίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-06-01"
01 Ιουνίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-07-01"
01 Ιουλίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-08-01"
01 Αυγούστου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-09-01"
01 Σεπτεμβρίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-10-01"
01 Οκτωβρίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-11-01"
01 Νοεμβρίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-12-01"
01 Δεκεμβρίου 2015

In Greek language things are different and complex compared to
English. We have accents (τόνους) for most words and words are not
fixed but can dynamically change depending on context.
When the month is accompanied by a day of month the accent (Greek
tonos/τόνος) changes and ...ος becomes ...ου. To fix this, use the
correct translations for months, if and only if %B
 and %d are used together. If the month is called with no day (%d)
using "%B" or if the month is called with "%d %b" or "%b" leave the
translations as they are.
Since there are many computer-science oriented Greek universities and
so many Greeks around the world, we are amazed that no one fixed it so
far.
We must also inform you that this silly bug of yours has been seen in webpages.



This bug report was last modified 7 years and 134 days ago.

Previous Next


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