Package: coreutils
Version: 8.13-3.2
Severity: normal

Hello,

I stumbled across a problem with the 'date' command which       is related to
the architecture of the     host system. On 32 bit machines, 'date'        can
output incorrect results or even output  confusing error     messages
while the same calculations yield correct results on 64      bit
systems.

On i386:

glaubitz@wheezy32:~> lsb_release -rsc
testing
wheezy
glaubitz@wheezy32:~> uname -a
Linux wheezy32 3.2.0-2-686-pae #1 SMP Mon May 21 18:24:12 UTC 2012 i686 
GNU/Linux
glaubitz@wheezy32:~> date -d "1000 months ago"
date: invalid date `1000 months ago'
glaubitz@wheezy32:~> date -d "2000 months ago"
Tue Nov 17 06:08:56 UTC 1981
glaubitz@wheezy32:~>

On amd64:

glaubitz@wheezy64:~> lsb_release -rsc
testing
wheezy
glaubitz@wheezy64:~> uname -a
Linux wheezy64 3.2.0-2-amd64 #1 SMP Mon May 21 17:45:41 UTC 2012 x86_64 
GNU/Linux
glaubitz@wheezy64:~> date -d "1000 months ago"
Sun Feb 10 23:43:18 UTC 1929
glaubitz@wheezy64:~> date -d "2000 months ago"
Fri Oct 10 23:43:21 UTC 1845
glaubitz@wheezy64:~>

A wild guess would be that the different size of time_t on i386 and amd64
could be responsible for this behavior. This bug doesn't seem to be
Debian-specific neither and hence should be forwarded to upstream.

Regards,

Adrian

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (100, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages coreutils depends on:
ii  dpkg          1.16.3
ii  install-info  4.13a.dfsg.1-10
ii  libacl1       2.2.51-7
ii  libattr1      1:2.4.46-7
ii  libc6         2.13-33
ii  libselinux1   2.1.9-2

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to