From: Pavel Charvat Date: Fri, 23 Nov 2007 09:58:03 +0000 (+0100) Subject: sanitize_char(): Allowed tabulators. X-Git-Tag: holmes-import~499^2 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=6315e58d119dd374d7aea78b86718f1cdc241ff3;p=libucw.git sanitize_char(): Allowed tabulators. --- diff --git a/lib/unicode.h b/lib/unicode.h index 3a2c39f1..b855b58d 100644 --- a/lib/unicode.h +++ b/lib/unicode.h @@ -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; }