(svn r23590) -Codechange: make the string validation settings better expandable

This commit is contained in:
rubidium
2011-12-18 18:37:54 +00:00
parent 6ae8cac432
commit fefe22b4aa
8 changed files with 24 additions and 14 deletions

View File

@@ -599,7 +599,7 @@ private:
char *p = this->text + (strncmp("\xEF\xBB\xBF", this->text, 3) == 0 ? 3 : 0);
/* Make sure the string is a valid UTF-8 sequence. */
str_validate(p, this->text + filesize, true);
str_validate(p, this->text + filesize, SVS_REPLACE_WITH_QUESTION_MARK | SVS_ALLOW_NEWLINE);
/* Split the string on newlines. */
*this->lines.Append() = p;