aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2012-04-10 19:02:04 +0200
committerLars Magne Ingebrigtsen2012-04-10 19:02:04 +0200
commit8d8d31f91ea20465687d6b2a4e54cf5a971518c9 (patch)
tree25fa9c6e56755dc9b7d06f4abe19b7a1cdbac014
parent2a8ce227d040e564ea6e7b4aecf1dcad5ca6e9c7 (diff)
downloademacs-8d8d31f91ea20465687d6b2a4e54cf5a971518c9.tar.gz
emacs-8d8d31f91ea20465687d6b2a4e54cf5a971518c9.zip
Revert previous url-util patch.
The caller can as easily do the decoding themselves.
-rw-r--r--lisp/url/ChangeLog3
-rw-r--r--lisp/url/url-util.el10
2 files changed, 3 insertions, 10 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index 6dcafb49bd6..3c9313e3e7d 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -10,9 +10,6 @@
10 10
112012-04-10 Lars Magne Ingebrigtsen <larsi@gnus.org> 112012-04-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
12 12
13 * url-util.el (url-unhex-string): Add an optional CODING-SYSTEM
14 parameter (bug#6252).
15
16 * url-domsurf.el: New file (bug#1401). 13 * url-domsurf.el: New file (bug#1401).
17 14
18 * url-cookie.el (url-cookie-two-dot-domains): Remove. 15 * url-cookie.el (url-cookie-two-dot-domains): Remove.
diff --git a/lisp/url/url-util.el b/lisp/url/url-util.el
index c62b820c2e7..848eb66e54b 100644
--- a/lisp/url/url-util.el
+++ b/lisp/url/url-util.el
@@ -308,13 +308,11 @@ Will not do anything if `url-show-status' is nil."
308;; str)) 308;; str))
309 309
310;;;###autoload 310;;;###autoload
311(defun url-unhex-string (str &optional allow-newlines coding-system) 311(defun url-unhex-string (str &optional allow-newlines)
312 "Remove %XX embedded spaces, etc in a URL. 312 "Remove %XX embedded spaces, etc in a URL.
313If optional second argument ALLOW-NEWLINES is non-nil, then allow the 313If optional second argument ALLOW-NEWLINES is non-nil, then allow the
314decoding of carriage returns and line feeds in the string, which is normally 314decoding of carriage returns and line feeds in the string, which is normally
315forbidden in URL encoding. 315forbidden in URL encoding."
316If CODING-SYSTEM is non-nil, interpret the unhexed string as
317being encoded in that coding system."
318 (setq str (or str "")) 316 (setq str (or str ""))
319 (let ((tmp "") 317 (let ((tmp "")
320 (case-fold-search t)) 318 (case-fold-search t))
@@ -333,9 +331,7 @@ being encoded in that coding system."
333 (t (byte-to-string code)))) 331 (t (byte-to-string code))))
334 str (substring str (match-end 0))))) 332 str (substring str (match-end 0)))))
335 (setq tmp (concat tmp str)) 333 (setq tmp (concat tmp str))
336 (if coding-system 334 tmp))
337 (decode-coding-string tmp coding-system)
338 tmp)))
339 335
340(defconst url-unreserved-chars 336(defconst url-unreserved-chars
341 '( 337 '(