[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] Do not reset string size upon closing stri
From: |
Christian Kellermann |
Subject: |
Re: [Chicken-hackers] [PATCH] Do not reset string size upon closing string output ports (R7RS compat) |
Date: |
Sun, 16 Jun 2013 22:02:34 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
* Peter Bex <address@hidden> [130608 17:43]:
> Hi all,
>
> I noticed a bug in the R7RS egg's implementation of call-with-port,
> which lead me to fix it and write a test, only to discover another
> problem in core.
>
> For some reason if a string port is closed, the yielded string's
> length gets set to the buffer size, which means if you request the
> string after closing the port, you get the string padded with lots
> of spaces.
Thanks for catching this, I accidentally the master branch ;)
Cheers,
Christian
--
In the world, there is nothing more submissive and weak than
water. Yet for attacking that which is hard and strong, nothing can
surpass it. --- Lao Tzu