zsh-workers
 help / color / mirror / code / Atom feed
From: "Mikael Magnusson" <mikachu@gmail.com>
To: zsh-workers@sunsite.dk
Subject: Re: [bug] zsh/datetime strftime bug
Date: Sun, 9 Dec 2007 04:14:00 +0100	[thread overview]
Message-ID: <237967ef0712081914w19aee904n359825461f7777ec@mail.gmail.com> (raw)
In-Reply-To: <20071208221401.GA5387@localhost.localdomain>

On 09/12/2007, antho.charles@gmail.com <antho.charles@gmail.com> 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

  reply	other threads:[~2007-12-09  3:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-09  0:49 antho.charles
2007-12-09  3:14 ` Mikael Magnusson [this message]
2007-12-09 14:53   ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=237967ef0712081914w19aee904n359825461f7777ec@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).