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

With MSVC, isspace() will assert with non-ascii characters.
This commit is contained in:
Clinton Stimpson 2014-06-16 20:25:25 -06:00
parent 9dc88ee951
commit b6b493a4ed
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{