Client/manager: isspace() throws an exception on Win for non-ASCII chars.

Check isascii() first.
This commit is contained in:
David Anderson 2013-02-28 20:18:26 -08:00 committed by Oliver Bock
parent 951f16d960
commit 69b0748ada
1 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ struct XML_PARSER {
while (1) {
c = f->_getc();
if (!c || c == EOF) return true;
if (isspace(c)) continue;
if (isascii(c) && isspace(c)) continue;
first_char = c;
return false;
}
@ -173,7 +173,7 @@ struct XML_PARSER {
if (attr_buf) *attr_buf = 0;
return XML_PARSE_TAG;
}
if (isspace(c)) {
if (isascii(c) && isspace(c)) {
if (found_space && attr_buf) {
if (--attr_len > 0) {
*attr_buf++ = c;