From: Martin Mares Date: Wed, 8 Jul 2015 14:19:38 +0000 (+0200) Subject: Unicode: Fixed a comment in unicode_sanitize_char() X-Git-Tag: v6.5~30 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=29bc4e87df6934c15f187d1a5fa1cbcf9ac437a8;p=libucw.git Unicode: Fixed a comment in unicode_sanitize_char() --- diff --git a/ucw/unicode.h b/ucw/unicode.h index 55532495..a71b4baa 100644 --- a/ucw/unicode.h +++ b/ucw/unicode.h @@ -344,7 +344,7 @@ static inline void *utf16_be_get(const void *p, uint *uu) static inline uint unicode_sanitize_char(uint u) { if (u >= 0x10000 || // We don't accept anything outside the basic plane - u >= 0xd800 && u < 0xf900 || // neither we do surrogates + u >= 0xd800 && u < 0xf900 || // neither we do surrogates and private use characters u >= 0x80 && u < 0xa0 || // nor latin-1 control chars u < 0x20 && u != '\t') return UNI_REPLACEMENT;