Hi,
We are using guile on Solaris 10u10 on x86 hardware and are experiencing
odd behaviour with (format #f "~s" foo), where foo is
1. a string containing #\" quotation characters,
2. ~9000 bytes long.
The faulty behaviour is that the resulting string is truncated to 4096
bytes every time.
However, the problem does not occur in the guile REPL, nor in any guise
on Solaris SPARC or Linux x86.
Further investigation using string ports and write confirms that the
problem can be reproduced with
(define s (make-string 9000 #\"))
(define o (open-output-string))
(write s o)
(define r (get-output-string o))
(string-length r) ; answers 4096
I have inspected the strings.c implementation but nothing obvious
suggests why the output string is truncated to 4096 bytes.
Can anyone assist ?
Thanks,
Brent