summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2014-06-17 02:25:25 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2014-06-17 15:26:42 (GMT)
commitb6b493a4ed662c638d2bb6c884fb42a5de214009 (patch)
tree78bca7a5825a0a881cbef1777a51c125624ef6f1 /Source/cmSystemTools.cxx
parent9dc88ee951103edd871b446f9a7812ad05579b66 (diff)
downloadCMake-b6b493a4ed662c638d2bb6c884fb42a5de214009.zip
CMake-b6b493a4ed662c638d2bb6c884fb42a5de214009.tar.gz
CMake-b6b493a4ed662c638d2bb6c884fb42a5de214009.tar.bz2
Encoding: Fix debug asserts parsing command line options with non-ascii chars.
With MSVC, isspace() will assert with non-ascii characters.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 2e417cb..e29e698 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)
{