From 3b64319b10196425401d4d71f7ee1273e3bffe32 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 15 Feb 2014 00:19:15 -0800 Subject: A trivial change in the UTF-8 decoder allows TXR to handle null bytes in text. * utf8.h (UTF8_ADMIT_NUL): New preprocessor symbol. (utf8_decoder): New member, flags. * utf8.c (utf8_decoder_init): Initialize flags to 0. (utf8_decode): If a null byte is encountered in the input, then convert it to 0xDC00, rather than keeping it as zero, unless flags contains UTF8_ADMIT_NUL. * txr.1: Document handling of null bytes. --- ChangeLog | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 00fff529..92e3d13e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,18 @@ +2014-02-15 Kaz Kylheku + + A trivial change in the UTF-8 decoder allows TXR to handle null bytes + in text. + + * utf8.h (UTF8_ADMIT_NUL): New preprocessor symbol. + (utf8_decoder): New member, flags. + + * utf8.c (utf8_decoder_init): Initialize flags to 0. + (utf8_decode): If a null byte is encountered in the input, + then convert it to 0xDC00, rather than keeping it as zero, + unless flags contains UTF8_ADMIT_NUL. + + * txr.1: Document handling of null bytes. + 2014-02-14 Kaz Kylheku * hash.c (hash_update): Avoid double cdr. -- cgit v1.2.3