1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-16 00:30:21 +02:00

scm_getc improperly handles Latin-1 characters

Upper-plane Latin-1 characters should be converted to codepoints.

* libguile/ports.c (scm_getc): improper conversion of char to scm_t_wchar
This commit is contained in:
Michael Gran 2009-08-27 20:42:36 -07:00
parent d5ecf5797d
commit 8736ef70ac

View file

@ -990,7 +990,7 @@ scm_getc (SCM port)
if (pt->encoding == NULL) if (pt->encoding == NULL)
{ {
/* The encoding is Latin-1: bytes are characters. */ /* The encoding is Latin-1: bytes are characters. */
codepoint = buf[0]; codepoint = (unsigned char) buf[0];
goto success; goto success;
} }