|
| From: | Markus Mützel |
| Subject: | [Octave-bug-tracker] [bug #36677] make_absolute_filename: extend to work with Windows drive letters |
| Date: | Sun, 3 Mar 2019 14:06:22 -0500 (EST) |
| User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0 |
Update of bug #36677 (project octave):
Status: Ready For Test => In Progress
Open/Closed: Closed => Open
_______________________________________________________
Follow-up Comment #17:
I pushed a patch here that supports the file URI scheme in
make_absolute_filename:
http://hg.savannah.gnu.org/hgweb/octave/rev/79efd0653155
At the moment, make_absolute_filename "canonicalizes" the file name if the
input is a relative path. But it does not if the input is an absolute path.
Imho, this is inconsistent. But the documentation is not clear on what is
expected.
The attached patch adds preliminary support for "canonicalizing" absolute
paths.
It isn't quite complete because it doesn't correctly treat something like
"file://hostname/C:/test/../../../file".
But before I continue: Would we expect make_absolute_filename to
"canonicalize" absolute paths?
(file #46404)
_______________________________________________________
Additional Item Attachment:
File name: bug36677_canonicalize_absolute.patch Size:3 KB
<https://savannah.gnu.org/file/bug36677_canonicalize_absolute.patch?file_id=46404>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?36677>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |