From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Emacs Defect. file-relative-name fail on some MS Windows Styled Path
Date: Sat, 30 Jun 2012 09:42:52 -0700 (PDT) [thread overview]
Message-ID: <56cbed23-5da2-4173-a5e2-706a1e63b3f4@oo8g2000pbc.googlegroups.com> (raw)
Emacs Defect. file-relative-name fail on some MS Windows Styled Path
file-relative-name doesn't work on MS Windows style path when the
drive letter is capitalized.
(file-relative-name "C:/Users/web/xyz.html" "C:/Users/web/") ; returns
"C:/Users/web/xyz.html"
(file-relative-name "c:/Users/web/xyz.html" "c:/Users/web/") ; returns
"xyz.html"
(file-relative-name "/Users/web/xyz.html" "/Users/web/") ; returns
"xyz.html"
GNU Emacs 24.1.1 (i386-mingw-nt6.1.7601) of 2012-06-10 on MARVIN
http://ergoemacs.org/emacs/emacs_bugs.html
Xah
next reply other threads:[~2012-06-30 16:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-30 16:42 Xah Lee [this message]
2012-06-30 17:21 ` Emacs Defect. file-relative-name fail on some MS Windows Styled Path Eli Zaretskii
2012-06-30 17:36 ` Eli Zaretskii
[not found] ` <mailman.3770.1341077781.855.help-gnu-emacs@gnu.org>
2012-06-30 18:52 ` Xah Lee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56cbed23-5da2-4173-a5e2-706a1e63b3f4@oo8g2000pbc.googlegroups.com \
--to=xahlee@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).