From: Matt Birkholz Date: Tue, 27 May 2014 16:41:16 +0000 (-0700) Subject: Fix uri->pathname too, just for completeness. X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=362dfd22cb3ffe01c79242d4f473e76c9898f2e7;p=mit-scheme.git Fix uri->pathname too, just for completeness. (uri->pathname (pathname->uri "./file")) does not signal an error, but it does not produce the same directory component as (->pathname "./file"). Now (pathname=? (->pathname "./file") (uri->pathname...)) is #t, at least on Unix(?). --- diff --git a/src/runtime/pathnm.scm b/src/runtime/pathnm.scm index 766a52819..01c4fe7e6 100644 --- a/src/runtime/pathnm.scm +++ b/src/runtime/pathnm.scm @@ -348,6 +348,7 @@ these rules: (map (lambda (x) (cond ((string=? x "*") 'WILD) ((string=? x "..") 'UP) + ((string=? x ".") 'HERE) (else (utf8-string->string x)))) (uri-path uri))) (lose