(svn r25326) -Fix [FS#5589]: check for zero width space in translations and fail upon finding them

This commit is contained in:
rubidium 2013-06-07 19:05:04 +00:00
parent 3283cf9373
commit b35b17beeb
1 changed files with 1 additions and 0 deletions

View File

@ -723,6 +723,7 @@ void StringReader::HandleString(char *str)
WChar c;
Utf8Decode(&c, tmp);
if (c <= 0x001F || // ASCII control character range
c == 0x200B || // Zero width space
(c >= 0xE000 && c <= 0xF8FF) || // Private range
(c >= 0xFFF0 && c <= 0xFFFF)) { // Specials range
strgen_fatal("Unwanted UTF-8 character U+%04X in sequence '%s'", c, s);