Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAndrew Niefer2004-10-06 16:39:12 -0400
committerAndrew Niefer2004-10-06 16:39:12 -0400
commit73d595ea0eaeedfb7b3e6918623bb616105e38e3 (patch)
tree9712e65f845c771064aab66ad7e8e8ebf1d4cfc8 /core
parentd0299598075dea7cd1b4d61c26527a668c5bbb7d (diff)
downloadorg.eclipse.cdt-73d595ea0eaeedfb7b3e6918623bb616105e38e3.tar.gz
org.eclipse.cdt-73d595ea0eaeedfb7b3e6918623bb616105e38e3.tar.xz
org.eclipse.cdt-73d595ea0eaeedfb7b3e6918623bb616105e38e3.zip
use the canonical path when creating code readers so that the name
in the code reader matches the file on disk (makes a difference on non-case-sensitive OSs)
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