From fc4a4d24718f92542e4c606d3f3ff2cf81e8f5e3 Mon Sep 17 00:00:00 2001 From: Kuang-che Wu Date: Wed, 8 Jan 2014 15:03:25 +0100 Subject: Fix UTF-8 character corruption every 32kb of text buffer --- src/fe-common/core/utf8.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/fe-common') 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 -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0