Commit b6b493a4 authored by Clinton Stimpson's avatar Clinton Stimpson
Browse files

Encoding: Fix debug asserts parsing command line options with non-ascii chars.

With MSVC, isspace() will assert with non-ascii characters.
parent 9dc88ee9
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment