all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xah Lee <xahlee@gmail.com>
To: 11827@debbugs.gnu.org, eliz@gnu.org
Subject: bug#11827: 24.1; file-relative-name fail on some MS Windows path
Date: Sat, 30 Jun 2012 11:49:26 -0700	[thread overview]
Message-ID: <CAGOnjhRyv0BRq4B+DqsqS2wSj9+rmBhR0BBF2SRdofC9P+d+=w@mail.gmail.com> (raw)

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

 Xah





             reply	other threads:[~2012-06-30 18:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-30 18:49 Xah Lee [this message]
2012-07-01 16:40 ` bug#11827: 24.1; file-relative-name fail on some MS Windows path Eli Zaretskii

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGOnjhRyv0BRq4B+DqsqS2wSj9+rmBhR0BBF2SRdofC9P+d+=w@mail.gmail.com' \
    --to=xahlee@gmail.com \
    --cc=11827@debbugs.gnu.org \
    --cc=eliz@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.