Re: Patch for input string port
Shiro Kawai writes:
> Input string port in STk-4.0.1 can't handle a string containing
> NUL bytes, e.g.
>
> (with-input-from-string "abc\0def" (lambda () (read-line)))
> => "abc"
>
Oops! correct.
> This patch fixes it. However, it changes API of
> STk_internal_open_input_string, so it might break existing
> extension code. Would it better to have a separate function? > Eric
>
Thanks a lot for the patch file. I have applied it but it shows me
immediately a problem: eval-string doesn't handle correctly the
strings with null characters too :-<
I have corrected this too and a bunch of things related to this.
-- Erick
Received on Tue Nov 09 1999 - 19:32:36 CET
This archive was generated by hypermail 2.3.0
: Mon Jul 21 2014 - 19:38:59 CEST