put-u8: Always write a single byte, regardless of the port encoding.
authorMark H Weaver <mhw@netris.org>
Wed, 1 May 2019 09:20:36 +0000 (05:20 -0400)
committerMark H Weaver <mhw@netris.org>
Tue, 7 May 2019 08:41:15 +0000 (04:41 -0400)
commit91b5b1631f87067a63cb0b50df5dbfce977c18c7
treeb09f1b978087e509d1d6490c4f491d62a0a48610
parent5b42fd80d7765953c472ffc002351e04cc307bad
put-u8: Always write a single byte, regardless of the port encoding.

Previously, 'put-u8' used textual I/O to write a single character,
relying on the usual practice of setting the port encoding to ISO-8859-1
for binary ports.

* libguile/r6rs-ports.c (scm_put_u8): Use 'scm_c_write', not 'scm_putc'.
libguile/r6rs-ports.c