all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* url-default-expander expands wrongly on Windows
@ 2008-03-27 11:42 Klaus Straubinger
  2008-03-27 12:08 ` Jason Rumney
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Klaus Straubinger @ 2008-03-27 11:42 UTC (permalink / raw)
  To: bug-gnu-emacs

In GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600)
 of 2008-03-26 on RELEASE
Windowing system distributor `Microsoft Corp.', version 5.1.2600

the function url-default-expander calls expand-file-name which
inserts interesting but wrong drive letters into URLs when called
on Windows.

In my opinion the local part of an URL should not be handled by
file-name handlers at all.

-- 
Klaus Straubinger




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: url-default-expander expands wrongly on Windows
  2008-03-27 11:42 url-default-expander expands wrongly on Windows Klaus Straubinger
@ 2008-03-27 12:08 ` Jason Rumney
       [not found] ` <mailman.9496.1206619761.18990.bug-gnu-emacs@gnu.org>
  2008-03-27 13:54 ` Stefan Monnier
  2 siblings, 0 replies; 5+ messages in thread
From: Jason Rumney @ 2008-03-27 12:08 UTC (permalink / raw)
  To: Klaus Straubinger; +Cc: bug-gnu-emacs

Klaus Straubinger wrote:
> In GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600)
>  of 2008-03-26 on RELEASE
> Windowing system distributor `Microsoft Corp.', version 5.1.2600
>
> the function url-default-expander calls expand-file-name which
> inserts interesting but wrong drive letters into URLs when called
> on Windows.
>   

Can you please provide a test case for reproducing the problem. As far 
as I can see, url-expand-file-name is the entry point for calling this 
function, but I can't find a URL that causes it to fail in the way you 
describe.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: url-default-expander expands wrongly on Windows
       [not found] ` <mailman.9496.1206619761.18990.bug-gnu-emacs@gnu.org>
@ 2008-03-27 12:35   ` Klaus Straubinger
  0 siblings, 0 replies; 5+ messages in thread
From: Klaus Straubinger @ 2008-03-27 12:35 UTC (permalink / raw)
  To: bug-gnu-emacs

> Can you please provide a test case for reproducing the problem.

(url-expand-file-name "test" ["http" nil nil "www.gnu.org" 80 "/" nil nil t])

--> "http://www.gnu.org/c:/test"

> As far as I can see, url-expand-file-name is the entry point for
> calling this function, but I can't find a URL that causes it to fail
> in the way you describe.

The URL should not be relevant as long as something is provided in the
DEFAULT argument.

-- 
Klaus Straubinger




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: url-default-expander expands wrongly on Windows
  2008-03-27 11:42 url-default-expander expands wrongly on Windows Klaus Straubinger
  2008-03-27 12:08 ` Jason Rumney
       [not found] ` <mailman.9496.1206619761.18990.bug-gnu-emacs@gnu.org>
@ 2008-03-27 13:54 ` Stefan Monnier
  2009-01-13  2:09   ` bug#1020: " Juanma Barranquero
  2 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2008-03-27 13:54 UTC (permalink / raw)
  To: Klaus Straubinger; +Cc: bug-gnu-emacs

> the function url-default-expander calls expand-file-name which
> inserts interesting but wrong drive letters into URLs when called
> on Windows.

Can you show an example so as to help us understand the problem?

> In my opinion the local part of an URL should not be handled by
> file-name handlers at all.

I do not understand what you're talking about.


        Stefan




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#1020: url-default-expander expands wrongly on Windows
  2008-03-27 13:54 ` Stefan Monnier
@ 2009-01-13  2:09   ` Juanma Barranquero
  0 siblings, 0 replies; 5+ messages in thread
From: Juanma Barranquero @ 2009-01-13  2:09 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 1020, Klaus Straubinger

On Thu, Mar 27, 2008 at 14:54, Stefan Monnier <monnier@iro.umontreal.ca> wrote:

>> the function url-default-expander calls expand-file-name which
>> inserts interesting but wrong drive letters into URLs when called
>> on Windows.
>
> Can you show an example so as to help us understand the problem?

ELISP> (url-expand-file-name "test" "http://www.gnu.org/")
"http://www.gnu.org/c:/test"
ELISP> (url-expand-file-name "test" "http://www.gnu.org")
"http://www.gnu.org/c:/emacs/lisp/url/test"
ELISP> (url-expand-file-name "/test" "http://www.gnu.org/")
"http://www.gnu.org/test"
ELISP> (url-expand-file-name "/test" "http://www.gnu.org")
"http://www.gnu.org/test"


    Juanma






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-13  2:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-27 11:42 url-default-expander expands wrongly on Windows Klaus Straubinger
2008-03-27 12:08 ` Jason Rumney
     [not found] ` <mailman.9496.1206619761.18990.bug-gnu-emacs@gnu.org>
2008-03-27 12:35   ` Klaus Straubinger
2008-03-27 13:54 ` Stefan Monnier
2009-01-13  2:09   ` bug#1020: " Juanma Barranquero

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.