mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 22:31:12 +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:
parent
d5ecf5797d
commit
8736ef70ac
1 changed files with 1 additions and 1 deletions
|
@ -990,7 +990,7 @@ scm_getc (SCM port)
|
|||
if (pt->encoding == NULL)
|
||||
{
|
||||
/* The encoding is Latin-1: bytes are characters. */
|
||||
codepoint = buf[0];
|
||||
codepoint = (unsigned char) buf[0];
|
||||
goto success;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue