Hi Brent,
Would you be willing to help debug this a bit? It would be useful to
put a breakpoint at 'scm_strport_to_string' in libguile/strports.c in
the case where a truncated string is returned.
After 'pt' is initialized, what's the value of 'pt->read_buf_size'? It
should be the number of byte
>However, if I make the input string 4095 bytes long,
> then I do not get the expected 4097 long output string.
> Instead, I get a resulting string truncted to 4096 bytes.
>
> (define s (make-string 4095 #\x))
> (string-length (with-output-to-string (lambda () (write s
>; a
Hi,
I have some further diagnostics on my problem.
As you know the string resulting from a call to write should be at least
two (2) characters longer than the input string since the input string
is prepended and appended with a #\x quotation character.
This is indeed the case for short strin