]> mj.ucw.cz Git - libucw.git/commitdiff
Unicode: Fixed a comment in unicode_sanitize_char()
authorMartin Mares <mj@ucw.cz>
Wed, 8 Jul 2015 14:19:38 +0000 (16:19 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 8 Jul 2015 14:19:38 +0000 (16:19 +0200)
ucw/unicode.h

index 55532495004e6e21f3f9f21c1c7394457157b636..a71b4baac20a605ee21f5d676af836de5e53d6a2 100644 (file)
@@ -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;