GNU bug report logs - #41480
Chars out of order in date.c string

Previous Next

Package: coreutils;

Reported by: Anders Jonsson <anders.jonsson <at> norsjovallen.se>

Date: Sat, 23 May 2020 11:42:02 UTC

Severity: normal

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: Anders Jonsson <anders.jonsson <at> norsjovallen.se>
To: bug-coreutils <at> gnu.org
Cc: Göran Uddeborg <goeran <at> uddeborg.se>
Subject: Chars out of order in date.c string
Date: Sat, 23 May 2020 13:41:08 +0200
Hi,
I noticed one thing when having a look at the Swedish translation of 
coreutils.

>#: src/date.c:196
>msgid ""
>"  %F   full date; like %+4Y-%m-%d\n"


This doesn't give the expected result when I try it in coreutils 8.30 in 
Debian testing:

>date +%F
2020-05-23
>date +%+4Y-%m-%d
%+4Y-05-23


If the "%" and the "+" change places in the string above we get the 
expected result:

>date +%4Y-%m-%d
2020-05-23


My suggestion would thus be to change the character order so the string 
becomes "  %F   full date; like +%4Y-%m-%d\n"


Regards,
Anders Jonsson




This bug report was last modified 5 years and 59 days ago.

Previous Next


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