GNU bug report logs - #11827
24.1; file-relative-name fail on some MS Windows path

Previous Next

Package: emacs;

Reported by: xahlee <at> gmail.com

Date: Sat, 30 Jun 2012 18:54:02 UTC

Severity: normal

Found in version 24.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11827 in the body.
You can then email your comments to 11827 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#11827; Package emacs. (Sat, 30 Jun 2012 18:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to xahlee <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 30 Jun 2012 18:54:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Xah Lee <xahlee <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: 24.1; file-relative-name fail on some MS Windows path
Date: Sat, 30 Jun 2012 11:49:26 -0700
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 sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sun, 01 Jul 2012 16:46:03 GMT) Full text and rfc822 format available.

Notification sent to xahlee <at> gmail.com:
bug acknowledged by developer. (Sun, 01 Jul 2012 16:46:03 GMT) Full text and rfc822 format available.

Message #10 received at 11827-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: xahlee <at> gmail.com
Cc: 11827-done <at> debbugs.gnu.org
Subject: Re: 24.1; file-relative-name fail on some MS Windows path
Date: Sun, 01 Jul 2012 19:40:54 +0300
> Date: Sat, 30 Jun 2012 11:49:26 -0700
> From: Xah Lee <xahlee <at> gmail.com>
> 
> 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

Fixed in revision 108064 on the emacs-24 branch, for Emacs 24.2.

Thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 30 Jul 2012 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 282 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.