unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@igalia.com>
To: Zefram <zefram@fysh.org>
Cc: 26260@debbugs.gnu.org
Subject: bug#26260: ~f SRFI-19 format specifier mishandles one-digit seconds value
Date: Wed, 19 Apr 2017 15:44:27 +0200	[thread overview]
Message-ID: <87d1c8o6kk.fsf@igalia.com> (raw)
In-Reply-To: <20170326020929.GD6453@fysh.org> (zefram@fysh.org's message of "Sun, 26 Mar 2017 03:09:29 +0100")

On Sun 26 Mar 2017 04:09, Zefram <zefram@fysh.org> writes:

> The ~f format specifier for SRFI-19's date->string is documented as:
>
> #    ~f     seconds and fractional seconds, with locale
> #           decimal point, eg. `5.2'
>
> Let's test that example:
>
> scheme@(guile-user)> (use-modules (srfi srfi-19))
> scheme@(guile-user)> (date->string (make-date 200000000 5 34 12 26 3 2017 0) "~f")
> $1 = "05.2"
>
> That's not the documented format: the doc and the SRFI itself show "5.2"
> with no leading padding, but actual behaviour is to zero pad.  There is
> much that is ambiguous in the SRFI's specification of ~f, but with that
> example it does at least seem clear that there should be no padding there.

Fixed in git; thanks for the report :)

Andy





  reply	other threads:[~2017-04-19 13:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-26  2:09 bug#26260: ~f SRFI-19 format specifier mishandles one-digit seconds value Zefram
2017-04-19 13:44 ` Andy Wingo [this message]
2017-04-19 13:46   ` Andy Wingo

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=87d1c8o6kk.fsf@igalia.com \
    --to=wingo@igalia.com \
    --cc=26260@debbugs.gnu.org \
    --cc=zefram@fysh.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).