Subject: Re: bug#9664: (format #t "~3tX") fails in the REPL

From: Andy Wingo <[email-masked]>
Date: Wed, 05 Oct 2011 20:18:26 +0200

On Mon 03 Oct 2011 21:59, [email-masked] 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/