Changeset 15446


Ignore:
Timestamp:
10/29/20 16:54:42 (2 years ago)
Author:
Mark Evenson
Message:

Create JAR-PATHNAME from strings with correct type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/JarPathname.java

    r15443 r15446  
    7575      rootDevice.copyFrom(p);
    7676    } else if (p instanceof Pathname) {
    77       // FIXME: not going to work with namestrings with characters
    78       // that need URI escaping
    79       rootDevice.copyFrom(p);
     77      rootDevice = URLPathname.create(p);
    8078    } else {
    8179      simple_error("Argument is already a JAR-PATHNAME: ~a", p);
     
    197195
    198196    // Normalize the root jar to be a URL
     197    URLPathname rootPathname;
    199198    String rootNamestring = contents.get(0);
    200199    if (!isValidURL(rootNamestring)) {
    201       rootNamestring = "file:" + rootNamestring;
    202     }
    203 
    204     URLPathname rootPathname = (URLPathname)URLPathname.create(rootNamestring);
     200      Pathname root = Pathname.create(rootNamestring);
     201      rootPathname = URLPathname.createFromFile(root);
     202    } else {
     203      rootPathname = URLPathname.create(rootNamestring);
     204    }
    205205
    206206    LispObject jars = NIL;
Note: See TracChangeset for help on using the changeset viewer.