Comment 4 for bug 439286

Revision history for this message
YP (yuriy-pasichnyk) wrote : Re: [Bug 439286] Re: First appearance of ~t (Tilda T) in format string is not expanded properly

Yes, indeed (sb-kernel:charpos) returns 2.The question is - why?
I know how to work around the problem (with additional new line, but still),
so I reported the bug
not because it is blocking me, but purely as a help to make SBCL even
better.

On Tue, Oct 6, 2009 at 9:54 PM, Alastair Bridgewater <
<email address hidden>> wrote:

> I believe that you will find (sb-kernel:charpos) to return 2 in this
> case (the "* " prompt), and there is no intervening newline to reset the
> position. (format t "~%~3tXXX~%~36YYY~%") should print something more
> to your liking (though with an additional linefeed).
>
> --
> First appearance of ~t (Tilda T) in format string is not expanded properly
> https://bugs.launchpad.net/bugs/439286
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Steel Bank Common Lisp: New
>
> Bug description:
> When I type:
> (format t "~3tXXX~%~3tYYY~%")
>
> it prints (please pay attention to number of spaces in front of XXX and
> YYY):
> XXX
> YYY
>
> it should print:
> XXX
> YYY
>
> Additional info:
> $ sbcl --version
> SBCL 1.0.30
>
> $ uname -a
> Linux gis 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009
> i686 GNU/Linux
>