GNU bug report logs - #2543
w32-shell-execute removes target from local URLs

Previous Next

Package: emacs;

Reported by: rezonatix3 <at> yahoo.no

Date: Mon, 2 Mar 2009 21:05:05 UTC

Severity: normal

Done: Jason Rumney <jasonr <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 2543 in the body.
You can then email your comments to 2543 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-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2543; Package emacs. (Mon, 02 Mar 2009 21:05:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to rezonatix3 <at> yahoo.no:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 02 Mar 2009 21:05:06 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Marius Andersen <rezonatix3 <at> yahoo.no>
To: bug-gnu-emacs <at> gnu.org
Subject: w32-shell-execute removes target from local URLs
Date: Mon, 2 Mar 2009 20:55:15 +0000 (GMT)
The (Windows) function w32-shell-execute strips anchors from URLs to
local files. For instance, given that the file C:/index.html exists, executing

    (w32-shell-execute "open" "file:///C:/index.html#test")

opens file:///C:/index.html, without #test.

Note, however, that the function has no problem with external URLs;
e.g.,

    (w32-shell-execute "open" "http://www.example.org/index.html#test")

opens http://www.example.org/index.html#test, with the anchor included.

In GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600)
 of 2008-09-06 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: NOR
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  shell-dirtrack-mode: t
  change-cursor-mode: t
  global-hl-line-mode: t
  show-paren-mode: t
  cua-mode: t
  encoded-kbd-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t


      _________________________________________________________
Alt i ett. Få Yahoo! Mail med adressekartotek, kalender og
notisblokk. http://no.mail.yahoo.com





Reply sent to Jason Rumney <jasonr <at> gnu.org>:
You have taken responsibility. (Mon, 02 Mar 2009 23:05:05 GMT) Full text and rfc822 format available.

Notification sent to rezonatix3 <at> yahoo.no:
bug acknowledged by developer. (Mon, 02 Mar 2009 23:05:06 GMT) Full text and rfc822 format available.

Message #10 received at 2543-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jason Rumney <jasonr <at> gnu.org>
To: rezonatix3 <at> yahoo.no, 2543-done <at> debbugs.gnu.org
Subject: Re: bug#2543: w32-shell-execute removes target from local URLs
Date: Tue, 03 Mar 2009 06:55:01 +0800
Marius Andersen wrote:
> The (Windows) function w32-shell-execute strips anchors from URLs to
> local files. For instance, given that the file C:/index.html exists, executing
>
>     (w32-shell-execute "open" "file:///C:/index.html#test")
>   

Anchors are not valid in file URLs, but it is not Emacs that is 
stripping it, as Emacs makes no attempt to decode the parameters that 
you supply.






bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Tue, 31 Mar 2009 14:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 38 days ago.

Previous Next


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