diff options
author | Ludovic Courtès <ludo@gnu.org> | 2011-05-07 22:46:38 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2011-05-07 22:47:49 +0200 |
commit | 7be1705dbda377780335ecbcbfce04de523f2671 (patch) | |
tree | d198136d5e6fc21759c5e9c9a4b008b4e421971a /doc/ref/api-memory.texi | |
parent | 452c5ad912baee9fa64298b6a8905681557ad3ae (diff) | |
download | guile-7be1705dbda377780335ecbcbfce04de523f2671.tar.gz |
Fix `get_utf8_codepoint' to not consume valid starting bytes.
Thanks to Mark H. Weaver for pointing this out.
* libguile/ports.c (CONSUME_PEEKED_BYTE): New macro.
(get_utf8_codepoint): New variable `pt'. Use
`scm_peek_byte_or_eof'/`CONSUME_PEEKED_BYTE' pairs instead of
`scm_get_byte_or_eof'.
* test-suite/tests/ports.test ("string ports")[#xc2 #x41 #x42, #xe0 #xa0
#x41 #x42, #xf0 #x88 #x88 #x88]: Fix to conform to Unicode 6.0.0.
[#xe0 #x88 #x88]: Remove test.
[#xf0 #x80 #x80 #x41]: New test.
Diffstat (limited to 'doc/ref/api-memory.texi')
0 files changed, 0 insertions, 0 deletions