GNU bug report logs - #21907
date->string duff ISO 8601 zone format

Previous Next

Package: guile;

Reported by: Zefram <zefram <at> fysh.org>

Date: Fri, 13 Nov 2015 15:00:03 UTC

Severity: normal

Full log


Message #8 received at 21907 <at> debbugs.gnu.org (full text, mbox):

From: Zefram <zefram <at> fysh.org>
To: 21907 <at> debbugs.gnu.org
Subject: Re: bug#21907: date->string duff ISO 8601 zone format
Date: Wed, 19 Apr 2017 22:21:46 +0100
[Message part 1 (text/plain, inline)]
A sequence of two patches is attached.  The first fixes the ~2/~4 bug,
signalling an error for any unrepresentable offset.

The second is a bonus patch, which fixes related problems in ~z, the
RFC 822 zone format specifier.  Prior to the patch, ~z outputs "Z" for
UT, which would be correct for ISO 8601 format but is deprecated (along
with all the other single-letter syntax) for RFC 822.  The patch changes
that to the approved "+0000".  ~z also had exactly the same problems as
~2/~4 regarding unrepresentable offsets, so the patch fixes them in the
same way.

I could report the ~z problems in a separate ticket if you like.
Beware that the second of these patches has some textual dependence on
the first, so trying to handle them separately might just be confusing.

-zefram
[0001-fix-SRFI-19-s-ISO-8601-zone-output-formats.patch (text/x-diff, attachment)]
[0002-fix-SRFI-19-s-RFC-822-zone-output-format.patch (text/x-diff, attachment)]

This bug report was last modified 8 years and 57 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.