]> mj.ucw.cz Git - libucw.git/commitdiff
sanitize_char(): Allowed tabulators.
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Fri, 23 Nov 2007 09:58:03 +0000 (10:58 +0100)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Fri, 23 Nov 2007 09:58:03 +0000 (10:58 +0100)
lib/unicode.h

index 3a2c39f13549090e2dab05fbe8e853a579162e67..b855b58d7f116b0e560bc49a2c61b1d5fb9b39e1 100644 (file)
@@ -214,7 +214,7 @@ unicode_sanitize_char(uns u)
   if (u >= 0x10000 ||                  // We don't accept anything outside the basic plane
       u >= 0xd800 && u < 0xf900 ||     // neither we do surrogates
       u >= 0x80 && u < 0xa0 ||         // nor latin-1 control chars
-      u < 0x20)
+      u < 0x20 && u != '\t')
     return UNI_REPLACEMENT;
   return u;
 }