Skip to content

Commit

Permalink
Fixed misuse of isascii. Also fixes mingw32 build, see http://msdn.mi…
Browse files Browse the repository at this point in the history
  • Loading branch information
gkistanova committed Mar 14, 2014
1 parent 70506c5 commit bc075b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/unittest/googletest/src/gtest-printers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ static void PrintWideCharsAsStringTo(const wchar_t* begin, size_t len,
bool is_previous_hex = false;
for (size_t index = 0; index < len; ++index) {
const wchar_t cur = begin[index];
if (is_previous_hex && isascii(cur) && IsXDigit(static_cast<char>(cur))) {
if (is_previous_hex && iswascii(cur) && IsXDigit(static_cast<char>(cur))) {
// Previous character is of '\x..' form and this character can be
// interpreted as another hexadecimal digit in its number. Break string to
// disambiguate.
Expand Down

0 comments on commit bc075b2

Please sign in to comment.