unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [jidanni@jidanni.org: browse-url-of-dired-file vs. .gz]
@ 2006-06-06 14:13 Richard Stallman
  2006-06-13 16:06 ` Chong Yidong
  0 siblings, 1 reply; 11+ messages in thread
From: Richard Stallman @ 2006-06-06 14:13 UTC (permalink / raw)


Could someone please DTRT and ack?

------- Start of forwarded message -------
From: Dan Jacobson <jidanni@jidanni.org>
To: bug-gnu-emacs@gnu.org
Date: Tue, 06 Jun 2006 05:07:46 +0800
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: browse-url-of-dired-file vs. .gz
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed 
	version=3.0.4

browse-url-of-dired-file on file.html.gz doesn't first uncompress it.


_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------

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

* [jidanni@jidanni.org: browse-url-of-dired-file vs. .gz]
@ 2006-06-13 15:44 Richard Stallman
  0 siblings, 0 replies; 11+ messages in thread
From: Richard Stallman @ 2006-06-13 15:44 UTC (permalink / raw)


[I sent this message a week ago but did not get a response.]

Could someone please DTRT and ack?

------- Start of forwarded message -------
From: Dan Jacobson <jidanni@jidanni.org>
To: bug-gnu-emacs@gnu.org
Date: Tue, 06 Jun 2006 05:07:46 +0800
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: browse-url-of-dired-file vs. .gz
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed 
	version=3.0.4

browse-url-of-dired-file on file.html.gz doesn't first uncompress it.


_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------

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

* Re: [jidanni@jidanni.org: browse-url-of-dired-file vs. .gz]
  2006-06-06 14:13 [jidanni@jidanni.org: browse-url-of-dired-file vs. .gz] Richard Stallman
@ 2006-06-13 16:06 ` Chong Yidong
  0 siblings, 0 replies; 11+ messages in thread
From: Chong Yidong @ 2006-06-13 16:06 UTC (permalink / raw)
  Cc: emacs-devel, Dan Jacobson

Richard Stallman <rms@gnu.org> writes:

> Could someone please DTRT and ack?
>
> From: Dan Jacobson <jidanni@jidanni.org>
> Subject: browse-url-of-dired-file vs. .gz
> To: bug-gnu-emacs@gnu.org
>
> browse-url-of-dired-file on file.html.gz doesn't first uncompress it.

This is a known Firefox bug, see

  https://bugzilla.mozilla.org/show_bug.cgi?id=52282

This bug has nothing to do with Emacs; opening file:///foo/bar.html.gz
in the Firefox address bar fails to uncompress, whereas
http://foo/bar.html.gz uncompress properly.  I don't think there's
anything we can (or should) do in Emacs to work around this.  The
Mozilla folks are still discussing how to fix it on their end.

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

* [jidanni@jidanni.org: browse-url-of-dired-file vs. .gz]
@ 2006-06-27 16:16 Richard Stallman
  2006-06-27 16:48 ` Chong Yidong
  2006-06-28 17:01 ` Stuart D. Herring
  0 siblings, 2 replies; 11+ messages in thread
From: Richard Stallman @ 2006-06-27 16:16 UTC (permalink / raw)


[I sent this message twice but did not get a response.]

Could someone please DTRT and ack?

------- Start of forwarded message -------
From: Dan Jacobson <jidanni@jidanni.org>
To: bug-gnu-emacs@gnu.org
Date: Tue, 06 Jun 2006 05:07:46 +0800
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: browse-url-of-dired-file vs. .gz
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed 
	version=3.0.4

browse-url-of-dired-file on file.html.gz doesn't first uncompress it.


_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------

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

* Re: [jidanni@jidanni.org: browse-url-of-dired-file vs. .gz]
  2006-06-27 16:16 Richard Stallman
@ 2006-06-27 16:48 ` Chong Yidong
  2006-06-28 17:01 ` Stuart D. Herring
  1 sibling, 0 replies; 11+ messages in thread
From: Chong Yidong @ 2006-06-27 16:48 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

> [I sent this message twice but did not get a response.]
>
> Could someone please DTRT and ack?
>
> From: Dan Jacobson <jidanni@jidanni.org>
> Subject: browse-url-of-dired-file vs. .gz
> To: bug-gnu-emacs@gnu.org
>
> browse-url-of-dired-file on file.html.gz doesn't first uncompress it.

You must have missed my previous message:

  This is a known Firefox bug, see

    https://bugzilla.mozilla.org/show_bug.cgi?id=52282

  This bug has nothing to do with Emacs; opening
  file:///foo/bar.html.gz in the Firefox address bar fails to
  uncompress, whereas http://foo/bar.html.gz uncompress properly.  I
  don't think there's anything we can do in Emacs to work around this.
  The Mozilla folks are still discussing how to fix it on their end.

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

* Re: [jidanni@jidanni.org: browse-url-of-dired-file vs. .gz]
  2006-06-27 16:16 Richard Stallman
  2006-06-27 16:48 ` Chong Yidong
@ 2006-06-28 17:01 ` Stuart D. Herring
  2006-06-28 17:22   ` Lennart Borgman
  2006-06-28 21:56   ` Jason Rumney
  1 sibling, 2 replies; 11+ messages in thread
From: Stuart D. Herring @ 2006-06-28 17:01 UTC (permalink / raw)
  Cc: emacs-devel

> browse-url-of-dired-file on file.html.gz doesn't first uncompress it.

I don't think this is an Emacs bug, precisely, since Emacs shouldn't be
uncompressing that file.  But is it a bug that

(browse-url-file-url "/foo.bar")

gives "file:/foo.bar" and not "file:///foo.bar"?

It seems to me that the last element of `browse-url-filename-alist' should
just be

("^/+" . "file:///")

If I'm not mistaken and this is wrong, perhaps it's confusing the browser?

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.

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

* Re: [jidanni@jidanni.org: browse-url-of-dired-file vs. .gz]
  2006-06-28 17:01 ` Stuart D. Herring
@ 2006-06-28 17:22   ` Lennart Borgman
  2006-06-28 21:56   ` Jason Rumney
  1 sibling, 0 replies; 11+ messages in thread
From: Lennart Borgman @ 2006-06-28 17:22 UTC (permalink / raw)
  Cc: Richard M. Stallman, emacs-devel

Stuart D. Herring wrote:
>> browse-url-of-dired-file on file.html.gz doesn't first uncompress it.
>>     
>
> I don't think this is an Emacs bug, precisely, since Emacs shouldn't be
> uncompressing that file.  But is it a bug that
>
> (browse-url-file-url "/foo.bar")
>
> gives "file:/foo.bar" and not "file:///foo.bar"?
>
> It seems to me that the last element of `browse-url-filename-alist' should
> just be
>
> ("^/+" . "file:///")
>
> If I'm not mistaken and this is wrong, perhaps it's confusing the browser?
>
> Davis
>   
I have posted some complaints about browse-url-filename-alist 
previously. Please take a look here:

    http://lists.gnu.org/archive/html/emacs-devel/2006-06/msg00613.html

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

* Re: [jidanni@jidanni.org: browse-url-of-dired-file vs. .gz]
  2006-06-28 17:01 ` Stuart D. Herring
  2006-06-28 17:22   ` Lennart Borgman
@ 2006-06-28 21:56   ` Jason Rumney
  2006-06-28 23:09     ` Lennart Borgman
  1 sibling, 1 reply; 11+ messages in thread
From: Jason Rumney @ 2006-06-28 21:56 UTC (permalink / raw)
  Cc: Richard M. Stallman, emacs-devel

Stuart D. Herring wrote:
> But is it a bug that
>
> (browse-url-file-url "/foo.bar")
>
> gives "file:/foo.bar" and not "file:///foo.bar"?
>
>   
Both are equally valid URLs for a local file.

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

* Re: [jidanni@jidanni.org: browse-url-of-dired-file vs. .gz]
  2006-06-28 21:56   ` Jason Rumney
@ 2006-06-28 23:09     ` Lennart Borgman
  2006-06-28 23:46       ` Jason Rumney
  0 siblings, 1 reply; 11+ messages in thread
From: Lennart Borgman @ 2006-06-28 23:09 UTC (permalink / raw)
  Cc: Richard M. Stallman, emacs-devel

Jason Rumney wrote:
> Stuart D. Herring wrote:
>> But is it a bug that
>>
>> (browse-url-file-url "/foo.bar")
>>
>> gives "file:/foo.bar" and not "file:///foo.bar"?
>>
>>   
> Both are equally valid URLs for a local file.
Thanks for that info. That clears my confusion a bit. But where is this 
info? I did a search at w3c.org but did not find it.

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

* Re: [jidanni@jidanni.org: browse-url-of-dired-file vs. .gz]
  2006-06-28 23:09     ` Lennart Borgman
@ 2006-06-28 23:46       ` Jason Rumney
  2006-06-29 19:08         ` Stuart D. Herring
  0 siblings, 1 reply; 11+ messages in thread
From: Jason Rumney @ 2006-06-28 23:46 UTC (permalink / raw)
  Cc: Richard M. Stallman, emacs-devel

Lennart Borgman wrote:
> Jason Rumney wrote:
>> Both are equally valid URLs for a local file.
> Thanks for that info. That clears my confusion a bit. But where is 
> this info? I did a search at w3c.org but did not find it.

People used to discuss this regularly in the early days of web browsers, 
when bugs in browser implementations meant you needed to be familiar 
with all the possibilities (some browsers used to use ftp if there were 
two or more slashes after file:).

http://groups.google.co.uk/group/comp.infosystems.www.providers/browse_thread/thread/d6642ca04fc461c4/dcbe395dc34c2c92?lnk=st&q=file+url+local&rnum=23&hl=en#dcbe395dc34c2c92

However, I just reviewed the relevant  RFCs, and there is no mention of 
a server-less version of the file: URL scheme, so file:/// does appear 
be more correct than file:/, at least in theory.

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

* Re: [jidanni@jidanni.org: browse-url-of-dired-file vs. .gz]
  2006-06-28 23:46       ` Jason Rumney
@ 2006-06-29 19:08         ` Stuart D. Herring
  0 siblings, 0 replies; 11+ messages in thread
From: Stuart D. Herring @ 2006-06-29 19:08 UTC (permalink / raw)
  Cc: emacs-devel

> However, I just reviewed the relevant  RFCs, and there is no mention of
> a server-less version of the file: URL scheme, so file:/// does appear
> be more correct than file:/, at least in theory.

Page 21 of RFC 3986 states that

                                 For example, the "file" URI
   scheme is defined so that no authority, an empty host, and
   "localhost" all mean the end-user's machine, ...

"No authority" means that the "//host" part of the URI is omitted
entirely, whereas "an empty host" means that the "//" has no text between
it and the following "/" that begins the path (which, with an authority
present, even if it's an empty host, must begin with a slash).  So
file:/// and file:/ and file://localhost/ all mean exactly the same thing,
whether or not they are followed by anything (which must be an absolute
file name without its leading /).  My apologies for reporting the "bug"
that did not in fact exist, but perhaps file:/// should be used anyway if
it's more compatible?

Davis


-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.

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

end of thread, other threads:[~2006-06-29 19:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-06 14:13 [jidanni@jidanni.org: browse-url-of-dired-file vs. .gz] Richard Stallman
2006-06-13 16:06 ` Chong Yidong
  -- strict thread matches above, loose matches on Subject: below --
2006-06-13 15:44 Richard Stallman
2006-06-27 16:16 Richard Stallman
2006-06-27 16:48 ` Chong Yidong
2006-06-28 17:01 ` Stuart D. Herring
2006-06-28 17:22   ` Lennart Borgman
2006-06-28 21:56   ` Jason Rumney
2006-06-28 23:09     ` Lennart Borgman
2006-06-28 23:46       ` Jason Rumney
2006-06-29 19:08         ` Stuart D. Herring

Code repositories for project(s) associated with this public inbox

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

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).