From d39f83f15d510fc88517641be136a4407bb67295 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Sun, 27 Oct 2013 15:18:17 +0800 Subject: [PATCH] disable u+2029 --- src/util/unicode.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/util/unicode.cc b/src/util/unicode.cc index d373de2..1bbf4ee 100644 --- a/src/util/unicode.cc +++ b/src/util/unicode.cc @@ -76,6 +76,12 @@ bool isLegalUnicode(Unicode u) if(u < max_small_unicode) return valid_small_unicode[u]; + /* + * U+2029: Paragraph Separator + */ + if(u == 0x2029) + return false; + /* * Reserved code for utf-16 */