bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

date -f segmentation fault, and non LC_TIME=C problems


From: Dan Jacobson
Subject: date -f segmentation fault, and non LC_TIME=C problems
Date: 24 Feb 2001 22:30:24 +0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Everything was going good,

$ date -f -
now
Sat Feb 24 20:17:00 CST 2001
yesterday
Fri Feb 23 20:17:06 CST 2001
next year
Sun Feb 24 20:17:14 CST 2002
^D
Segmentation fault

...until I hit ^D.  ^D=EOF no?

Wait a moment, it's more serious:

$ date|date -f -
Sun Feb 25 10:33:46 CST 2001
Segmentation fault

$ date > a
$ date -f a
Sun Feb 25 10:34:46 CST 2001
Segmentation fault

$ date --version
date (GNU sh-utils) 2.0
Written by David MacKenzie....
$ cat /etc/mandrake-release 
Linux Mandrake release 7.2 (Odyssey) for i586

$ date -R|date -Rf -
Sat, 24 Feb 2001 21:44:04 +0800
Segmentation fault

$ export LC_TIME=zh_TW.Big5
$ date
六 02 24 21:50:08 CST 2001
$ date | date -f -
六 02 24 00:00:00 CST 2001
Segmentation fault

Huh?  On this last one I bet the Chinese confused it.  [Re: CST!=+0800, never
mind that for now.  I think that's Mandrake.]

$ man date has the -I description misindented.
-- 
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]