Treat root path in normalizeCLIPathForVFS as case insensitive on Windows

This commit is contained in:
a3d4
2022-02-05 11:51:11 +01:00
parent 2f0ccb21be
commit 0a17495cf9
2 changed files with 26 additions and 5 deletions
+2 -1
View File
@@ -269,7 +269,8 @@ boost::filesystem::path FileReader::normalizeCLIPathForVFS(
if (!isUNCPath(normalizedPath))
{
boost::filesystem::path workingDirRootPath = canonicalWorkDir.root_path();
if (normalizedRootPath == workingDirRootPath)
// Ignore drive letter case on Windows (C:\ <=> c:\).
if (boost::filesystem::equivalent(normalizedRootPath, workingDirRootPath))
normalizedRootPath = "/";
}