Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/InternalParserUtil.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/InternalParserUtil.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/InternalParserUtil.java
index dd975eb75e6..596b0e8fc85 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/InternalParserUtil.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/InternalParserUtil.java
@@ -32,7 +32,10 @@ public class InternalParserUtil extends ParserFactory {
if (includeFile.exists() && includeFile.isFile())
{
try {
- return new CodeReader(finalPath);
+ //use the canonical path so that in case of non-case-sensitive OSs
+ //the CodeReader always has the same name as the file on disk with
+ //no differences in case.
+ return new CodeReader(includeFile.getCanonicalPath());
} catch (IOException e) {
}
}

Back to the top