mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 19:00:54 -06:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user