Changeset 13105
- Timestamp:
- 12/27/10 22:06:54 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/Pathname.java
r13100 r13105 266 266 Pathname jarPathname; 267 267 if (file.length() > 0) { 268 // Instead of "use URL constructor to normalize Windows' use of device"269 // attempt to shorten the URL to pass through the normal constructor.270 if (Utilities.isPlatformWindows271 && file.charAt(0) == '/'272 && file.charAt(2) == ':'273 && Character.isLetter(file.charAt(1)))274 {275 file = file.substring(1);276 }277 268 URL url = null; 278 269 URI uri = null; … … 295 286 jarPathname = new Pathname(uri.getSchemeSpecificPart()); 296 287 } else { 297 jarPathname = new Pathname( path);288 jarPathname = new Pathname((new File(path)).getPath()); 298 289 } 299 290 } else { … … 366 357 + ": " + ex.toString())); 367 358 } 368 Pathname p = new Pathname(uri.getPath()); 359 File file = new File(uri.getPath()); 360 Pathname p = new Pathname(file.getPath()); 369 361 this.host = p.host; 370 362 this.device = p.device;
Note: See TracChangeset
for help on using the changeset viewer.