Commit 3a4d43c0 authored by Brad King's avatar Brad King
Browse files

KWSys: Fix SplitPath for leading '\' on Windows

Windows paths may begin with a single backslash when the drive letter is
omitted.  Recognize this as a root path component.
parent fe4ee7da
......@@ -3143,9 +3143,9 @@ const char* SystemTools::SplitPathRootComponent(const char* p,
}
c += 2;
}
else if(c[0] == '/')
else if(c[0] == '/' || c[0] == '\\')
{
// Unix path.
// Unix path (or Windows path w/out drive letter).
if(root)
{
*root = "/";
......
......@@ -15,7 +15,7 @@
SET(KWSYS_DATE_STAMP_YEAR 2010)
# KWSys version date month component. Format is MM.
SET(KWSYS_DATE_STAMP_MONTH 07)
SET(KWSYS_DATE_STAMP_MONTH 08)
# KWSys version date day component. Format is DD.
SET(KWSYS_DATE_STAMP_DAY 09)
SET(KWSYS_DATE_STAMP_DAY 16)
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