Debian Bug report logs - #389251
coreutils: date's -d switch doesn't honour locale

version graph

Package: coreutils; Maintainer for coreutils is Michael Stone <[email protected]>; Source for coreutils is src:coreutils (PTS, buildd, popcon).

Reported by: Paolo Benvenuto <[email protected]>

Date: Sun, 24 Sep 2006 19:03:23 UTC

Severity: wishlist

Tags: wontfix

Found in version coreutils/5.97-5

Full log


Message #5 received at [email protected] (full text, mbox, reply):

Received: (at submit) by bugs.debian.org; 24 Sep 2006 18:41:23 +0000
From [email protected] Sun Sep 24 11:41:23 2006
Return-path: <[email protected]>
Received: from pri-214-b7.codetel.net.do ([196.3.84.214] helo=misiongenovesa.localdomain)
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1GRYuo-0006oC-Tj
	for [email protected]; Sun, 24 Sep 2006 11:41:23 -0700
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Paolo Benvenuto <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: coreutils: date's -d switch doesn't honour locale
Reply-To: Paolo Benvenuto <[email protected]>
Message-ID: <[email protected]>
X-Mailer: reportbug 3.29.3
Date: Sun, 24 Sep 2006 14:41:14 -0400
Delivered-To: [email protected]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	RCVD_IN_SBLXBL,RCVD_IN_SBLXBL_CBL autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02
Package: coreutils
Version: 5.97-5
Severity: normal

Issuing the date command with the -d switch, I would expect that date interprets
the -d argument according to locales.

If I have a date as 21 Set 1996 (Set is the abbreviation
for italian settembre = english september), I expect the behaviour

$ env LC_ALL=it_IT.UTF-8 date -d "21 Set 1996"
sab set 21 00:00:00 AST 1996

On the contrary it gives

date: invalid date `21 Set 1996'

apparently there isn't a way to tell date that the -d argument is in italian locale.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.15-1-486
Locale: LANG=es_DO.UTF-8, LC_CTYPE=es_DO.UTF-8 (charmap=UTF-8)

Versions of packages coreutils depends on:
ii  libacl1                      2.2.41-1    Access control list shared library
ii  libc6                        2.3.6.ds1-4 GNU C Library: Shared libraries
ii  libselinux1                  1.30.27-3   SELinux shared libraries

coreutils recommends no packages.

-- no debconf information



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 11:20:41 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.