#344 open-url fails to recognize file:/// (unix)

clisp (525)

The open-url defined in src/clhs.lisp fails for
file:// paths on Linux - e.g., for file:///etc/passwd
tries to open relative path etc/passwd (all slashes
after file:/ are stripped out). This makes impossible
to use *clhs- and *impnotes-root-default* of this
kind. (On windows it works, as path starts usually
with C: or somethink like that)

Possible (not completely clean) solutions is strip
only file://. It works only for schemas like file:///
or file://C:, but it would suffice for this purpose.

Other solution is leave it as it is and add (return
back) leading slash on Unixes.

Incidentaly, I think that proper RFC compliant URL of
this kind is file://<machine>/<path>, where machine
may be empty string for localhost and path should be
absolute path (including leading slash on Unix), but
browsers usually do not require four slashes in row.

However it would be done, there probably should be a
way to specify usable (absolute) file:// path on Unix.

Observed on clisp 2.38, verified in SF CVS that open-
url has not changed since.


  • Sam Steingold

    Sam Steingold - 2006-07-19
    • assigned_to: haible --> sds
    • status: open --> closed-fixed
  • Sam Steingold

    Sam Steingold - 2006-07-19

    Logged In: YES

    thank you for your bug report.
    the bug has been fixed in the CVS tree.
    you can either wait for the next release (recommended)
    or check out the current CVS tree (see http://clisp.cons.org\)
    and build CLISP from the sources (be advised that between
    releases the CVS tree is very unstable and may not even build
    on your platform).


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks