From b6b493a4ed662c638d2bb6c884fb42a5de214009 Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Mon, 16 Jun 2014 20:25:25 -0600 Subject: [PATCH] Encoding: Fix debug asserts parsing command line options with non-ascii chars. With MSVC, isspace() will assert with non-ascii characters. --- Source/cmSystemTools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 2e417cb93..e29e69824 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -439,7 +439,7 @@ void cmSystemTools::ParseWindowsCommandLine(const char* command, { arg.append(backslashes, '\\'); backslashes = 0; - if(isspace(*c)) + if(((*c & 0x80) == 0 ) && isspace(*c)) { if(in_quotes) {