changeset 57361:d3a3ba2db17f

(url-insert-file-contents): Use the URL to decide the encoding, not the buffer-file-name (which might not even exist).
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 06 Oct 2004 15:56:41 +0000
parents c9d90ef9b02c
children 9279048e751a
files lisp/url/ChangeLog lisp/url/url-handlers.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/url/ChangeLog	Wed Oct 06 15:51:45 2004 +0000
+++ b/lisp/url/ChangeLog	Wed Oct 06 15:56:41 2004 +0000
@@ -1,3 +1,8 @@
+2004-10-06  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* url-handlers.el (url-insert-file-contents): Use the URL to decide the
+	encoding, not the buffer-file-name (which might not even exist).
+
 2004-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 	* url-handlers.el (url-insert-file-contents): Decode contents.
--- a/lisp/url/url-handlers.el	Wed Oct 06 15:51:45 2004 +0000
+++ b/lisp/url/url-handlers.el	Wed Oct 06 15:56:41 2004 +0000
@@ -208,7 +208,7 @@
 	;; annotation which we could use as a hint of the locale in use
 	;; at the remote site.  Not sure how/if that should be done.  --Stef
 	(decode-coding-inserted-region
-	 start (point) buffer-file-name visit beg end replace)))
+	 start (point) url visit beg end replace)))
     (list url (length data))))
 
 (defun url-file-name-completion (url directory)