Changeset 15403
- Timestamp:
- 10/10/20 21:43:40 (2 years ago)
- Location:
- trunk/abcl/src/org/armedbear/lisp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/Pathname.java
r15402 r15403 144 144 145 145 146 /** The path component separator used by internally generated 146 /** 147 * The path component separator used by internally generated 147 148 * path namestrings. 148 149 */ 149 public final static char separator = '/';150 public final static char directoryDelimiter = '/'; 150 151 151 152 … … 585 586 // the namestring." 19.2.2.2.3.1 586 587 if (getDirectory() != NIL && getDirectory() != Keyword.UNSPECIFIC) { 587 final char separatorChar = '/';588 588 LispObject temp = getDirectory(); 589 589 LispObject part = temp.car(); 590 590 temp = temp.cdr(); 591 591 if (part == Keyword.ABSOLUTE) { 592 sb.append( separatorChar);592 sb.append(directoryDelimiter); 593 593 } else if (part == Keyword.RELATIVE) { 594 594 if (temp == NIL) { 595 595 // #p"./" 596 596 sb.append('.'); 597 sb.append( separatorChar);597 sb.append(directoryDelimiter); 598 598 } 599 599 // else: Nothing to do. … … 614 614 sb.append(".."); 615 615 } 616 sb.append( separatorChar);616 sb.append(directoryDelimiter); 617 617 temp = temp.cdr(); 618 618 } … … 720 720 if (n.equals(".") || n.equals("..")) { 721 721 useNamestring = false; 722 // ??? File.separatorChar is platform dependent. Does this help on Windows? 722 723 } else if (n.indexOf(File.separatorChar) >= 0) { 723 724 useNamestring = false; … … 2112 2113 String namestring = file.getCanonicalPath(); 2113 2114 if (namestring != null && namestring.length() > 0) { 2115 // ??? do we really want the platform dependent separatorChar? 2114 2116 if (namestring.charAt(namestring.length() - 1) != File.separatorChar) { 2115 2117 namestring = namestring.concat(File.separator); -
trunk/abcl/src/org/armedbear/lisp/zip.java
r15395 r15403 135 135 int i = 0; 136 136 int j; 137 while ((j = d.indexOf(Pathname. separator, i)) != -1) {137 while ((j = d.indexOf(Pathname.directoryDelimiter, i)) != -1) { 138 138 i = j + 1; 139 directory = d.substring(0, j) + Pathname. separator;139 directory = d.substring(0, j) + Pathname.directoryDelimiter; 140 140 if (!directories.contains(directory)) { 141 141 directories.add(directory); … … 177 177 int i = 0; 178 178 int j; 179 while ((j = path.indexOf(Pathname. separator, i)) != -1) {179 while ((j = path.indexOf(Pathname.directoryDelimiter, i)) != -1) { 180 180 i = j + 1; 181 final String directory = path.substring(0, j) + Pathname. separator;181 final String directory = path.substring(0, j) + Pathname.directoryDelimiter; 182 182 if (!contains(directory)) { 183 183 add(directory);
Note: See TracChangeset
for help on using the changeset viewer.