From: "Neil Jerram" <neiljerram@googlemail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guile-devel@gnu.org
Subject: Re: [PATCH] Use Gnulib's `strftime'
Date: Wed, 17 Sep 2008 22:17:36 +0200 [thread overview]
Message-ID: <49dd78620809171317x6eb44b14p8cdf964d05704ba5@mail.gmail.com> (raw)
In-Reply-To: <877i9ugvtr.fsf@gnu.org>
Hi Ludo...
2008/9/2 Ludovic Courtès <ludo@gnu.org>:
> Hello!
>
> I'm planning to use Gnulib's `strftime' module on `master' to fix
> portability problems related to `strftime', aka. #24130
> (https://savannah.gnu.org/bugs/?24130). The good thing is that
> `strftime' will now work the same regardless of the underlying libc.
Excellent!
> The source modification is attached.
I'm just a bit confused about %Z, because it seems to me that the
documentation contradicts the test.
Here's the doc change:
> +Note that @samp{%Z} always ignores the @code{tm:zone} in @var{tm};
> +instead it prints just the current zone (@code{tzset} above).
Here's the test:
> + (pass-if "strftime %Z doesn't return garbage"
> + (let ((t (localtime (current-time))))
> + (set-tm:zone t "ZOW")
> + (set-tm:isdst t 0)
> + (string=? (strftime "%Z" t)
> + "ZOW")))
The doc seems to be saying that (strftime "%Z" tm) will ignore TM's
zone, but the test makes it look like (strftime "%Z" tm) uses TM's
zone. Am I misunderstanding?
Regards,
Neil
next prev parent reply other threads:[~2008-09-17 20:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-02 20:02 [PATCH] Use Gnulib's `strftime' Ludovic Courtès
2008-09-09 20:32 ` Ludovic Courtès
2008-09-17 20:17 ` Neil Jerram [this message]
2008-09-18 21:17 ` Ludovic Courtès
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49dd78620809171317x6eb44b14p8cdf964d05704ba5@mail.gmail.com \
--to=neiljerram@googlemail.com \
--cc=guile-devel@gnu.org \
--cc=ludo@gnu.org \
/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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).