summaryrefslogtreecommitdiffstats
path: root/ChangeLog
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-02-15 00:19:15 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-02-15 00:19:15 -0800
commit3b64319b10196425401d4d71f7ee1273e3bffe32 (patch)
tree5197904de12a1b7a3d601fa468f4ab3514e0de2e /ChangeLog
parent48fbe97484faad462a1fc52049d682fdaaa665a0 (diff)
downloadtxr-3b64319b10196425401d4d71f7ee1273e3bffe32.tar.gz
txr-3b64319b10196425401d4d71f7ee1273e3bffe32.tar.bz2
txr-3b64319b10196425401d4d71f7ee1273e3bffe32.zip
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog15
1 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 00fff529..92e3d13e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2014-02-15 Kaz Kylheku <kaz@kylheku.com>
+
+ 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 <kaz@kylheku.com>
* hash.c (hash_update): Avoid double cdr.