Thien-Thi Nguyen <[email protected]> writes:

> FWIW, Guile 1.4.x can:
>
> string> (string #\nul)
> "^@"

Actually, it works as well with 1.8:

--8<---------------cut here---------------start------------->8---
guile> (string #\nul)
$1 = "\x00"
--8<---------------cut here---------------end--------------->8---

The "string contains #\nul character" message comes from
`scm_to_locale_stringn ()', which converts a string to a C `char *'.

It would be good to investigate how Guile-WWW reaches that code,
probably when calling some POSIX wrapper.

Thanks,
Ludo'.



Reply via email to