GNU bug report logs - #9664
(format #t "~3tX") fails in the REPL

Previous Next

Package: guile;

Reported by: rixed <at> happyleptic.org

Date: Mon, 3 Oct 2011 20:05:02 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

Full log


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

From: Andy Wingo <wingo <at> pobox.com>
To: rixed <at> happyleptic.org
Cc: 9664 <at> debbugs.gnu.org
Subject: Re: bug#9664: (format #t "~3tX") fails in the REPL
Date: Wed, 05 Oct 2011 20:18:26 +0200
On Mon 03 Oct 2011 21:59, rixed <at> happyleptic.org writes:

> The ~t formater is not working according to spec in the REPL.
> Try this for instance:
>
> (format #t "~10tA~20tB~30tC~40tD")
>
> will print:
>
> AB       C         D
>
> Although it works from a script or when outputing to a sting.
>
> Also, it works after a newline.

It appears that there is some difference between the readline-enabled
reader and the normal one.

    $ meta/guile -q
    scheme@(guile-user)> (port-column (current-output-port))
    $1 = 21

It is 0 with the readline reader.

I don't think the set-port-column! fix is right.  Why is the newline not
being chomped after the `(read)', I wonder?

Andy
-- 
http://wingolog.org/




This bug report was last modified 13 years and 249 days ago.

Previous Next


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