summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorKuang-che Wu <kcwu@csie.org>2014-01-08 15:03:25 +0100
committerAilin Nemui <ailin@esf51.localdomain>2014-06-18 22:47:17 +0200
commitfc4a4d24718f92542e4c606d3f3ff2cf81e8f5e3 (patch)
tree28322ce534ffac23e09334c84f7a11dfacfc9e9f /src/fe-common
parent0331970d64db01bd2db0d86a253393938b2539f1 (diff)
downloadirssi-fc4a4d24718f92542e4c606d3f3ff2cf81e8f5e3.zip
Fix UTF-8 character corruption every 32kb of text buffer
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/core/utf8.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fe-common/core/utf8.h b/src/fe-common/core/utf8.h
index 163f1717..3c15dc7d 100644
--- a/src/fe-common/core/utf8.h
+++ b/src/fe-common/core/utf8.h
@@ -12,5 +12,6 @@
int mk_wcwidth(unichar c);
#define unichar_isprint(c) (((c) & ~0x80) >= 32)
+#define is_utf8_leading(c) (((c) & 0xc0) != 0x80)
#endif