Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [bug] zsh/datetime strftime bug
- X-seq: zsh-workers 24194
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: [bug] zsh/datetime strftime bug
- Date: Sun, 9 Dec 2007 04:14:00 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=F6ZFjjjptOh43TSH4iKtvjmYqX95dFtkys/eu1u7VLo=; b=cW5OJ9Kakwm18Lvw3dflS/8H5V6md2fdpWSdIT7m/EkYGKZ2ycdmx4AYxZ+te9pM9PrxR0jbF8gjxA3JGGLsnGaB4EjZNC6cCVn5iAmagwyvvK2wnWhMVEjf8BasSHdF5IIoaITVIYwtOcA6I3QhV07cZXDde3AklvXVp6zGi0c=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LYokGkquwKYFdLTi244hprDwDJsg08gRG7eV1hjGIbsxANuZUZ+5u+VIDMQlrQenpPbIKi69rhaaJH5IyBsUjBM0G5BvtBhL9FxoEQjneyE4whsA4hPwSWNXPOgTwe7zkWV7E0sNuuUoE45RwCSN3N1lWlw46yyrIREyIk16NnE=
- In-reply-to: <20071208221401.GA5387@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20071208221401.GA5387@xxxxxxxxxxxxxxxxxxxxx>
On 09/12/2007, antho.charles@xxxxxxxxx <antho.charles@xxxxxxxxx> wrote:
> Hi zsh workers !
>
> I think I found a bug in strftime:
>
> baha@Saito% zsh -f
> Saito%zmodload zsh/datetime
> Saito% strftime '%T %x' $EPOCHSECONDS
> 23:04:17
> Saito% strftime '%T%x' $EPOCHSECONDS
> 23:05:2408.12.2007
> Saito% strftime '%x %T' $EPOCHSECONDS
> 08.12.2007 23:06:02
>
> I don't get the value of %x in the first output. If I loop the strftime
> command, I get sometimes some garbage characters.
>
> Saito% for i in {1..10}; strftime '%T %x' $EPOCHSECONDS && sleep 2
> 23:12:06 �
> 23:12:08
> 23:12:10 �
> 23:12:12
Happens here too, doesn't seem to happen with other combinations like
'%x %T %x' either. I also noticed this just now,
{4:11:47:~code/zsh}% grep parameter\ interface Src/Modules/*.c
Src/Modules/datetime.c: * datetime.c - parameter interface to langinfo
via curses
Src/Modules/langinfo.c: * langinfo.c - parameter interface to langinfo
via curses
I'm guessing it should say 'parameter interface to strftime' or something.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author