diff options
author | Michael Gran <spk121@yahoo.com> | 2009-08-27 20:42:36 -0700 |
---|---|---|
committer | Michael Gran <spk121@yahoo.com> | 2009-08-27 20:42:36 -0700 |
commit | 8736ef70acf603447cfcf697d44b8a46e8e53191 (patch) | |
tree | f63cd22c5ff724290caef79844db43ab233e377b | |
parent | d5ecf5797dade3882db816bd0a325568e3610ade (diff) | |
download | guile-8736ef70acf603447cfcf697d44b8a46e8e53191.tar.gz |
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
-rw-r--r-- | libguile/ports.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/ports.c b/libguile/ports.c index 749d97533..b3547f5cd 100644 --- a/libguile/ports.c +++ b/libguile/ports.c @@ -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; } |