A while ago I proposed a fix that Ingo prepared regarding the
PlatformHelper class handling Windows paths incorrectly. (I can't find
the mail in my mailprog, so I do not reply directly to this mail and
instead open a new thread).
The PlatformHelper simply lowercases paths in Windows with the assumption
that it would be easier to handle. In fact this is incorrect, while it
may work for Windows file systems, it does not work for JAR files etc.
Since I received no negative replies to that proposal, I'll commit this
now.
2005-11-14 Roman Kennke <[EMAIL PROTECTED]>
Reported by Ingo Proetel <[EMAIL PROTECTED]>
* gnu/java/io/PlatformHelper.java
(toCanonicalForm): Remove lowercasing of paths in Windows. This
breaks working with URLs, like when accessing files withing JAR
files.
/Roman
Index: gnu/java/io/PlatformHelper.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/java/io/PlatformHelper.java,v
retrieving revision 1.5
diff -u -r1.5 PlatformHelper.java
--- gnu/java/io/PlatformHelper.java 2 Jul 2005 20:32:12 -0000 1.5
+++ gnu/java/io/PlatformHelper.java 14 Nov 2005 13:07:45 -0000
@@ -109,11 +109,6 @@
String tmppath = path.replace('/', separatorChar);
StringBuffer canonpath;
- // We found it'll be more efficient and easy to handle to
- // return a lowercased canonical path
- if(isWindows)
- tmppath = tmppath.toLowerCase();
-
int i;
if ((i = beginWithRootPathPrefix(tmppath)) == 0 )
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches