changeset 19 | fcece45ef507 |
parent 18 | 2f34d5167611 |
child 30 | 5dc02b23752f |
--- a/tools/linguist/linguist/mainwindow.cpp Fri Apr 16 15:50:13 2010 +0300 +++ b/tools/linguist/linguist/mainwindow.cpp Mon May 03 13:17:34 2010 +0300 @@ -2370,7 +2370,7 @@ // because we get a lot of false positives. if (c != '&' && c != ' ' && QChar(c).isPrint()) { const ushort *pp = p; - for (; ::isalpha(*p); p++) ; + for (; *p < 256 && ::isalpha(*p); p++) ; if (pp == p || *p != ';') return true; // This looks like a HTML &entity;, so ignore it. As a HTML string