Re: [Chicken-hackers] [PATCH] Do not reset string size upon closing string output ports (R7RS compat)

2013-06-16 Thread Christian Kellermann
* Peter Bex peter@xs4all.nl [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

[Chicken-hackers] [PATCH] Do not reset string size upon closing string output ports (R7RS compat)

2013-06-08 Thread Peter Bex
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