diff options
| author | Lars Magne Ingebrigtsen | 2012-04-10 19:02:04 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2012-04-10 19:02:04 +0200 |
| commit | 8d8d31f91ea20465687d6b2a4e54cf5a971518c9 (patch) | |
| tree | 25fa9c6e56755dc9b7d06f4abe19b7a1cdbac014 | |
| parent | 2a8ce227d040e564ea6e7b4aecf1dcad5ca6e9c7 (diff) | |
| download | emacs-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/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/url/url-util.el | 10 |
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 | ||
| 11 | 2012-04-10 Lars Magne Ingebrigtsen <larsi@gnus.org> | 11 | 2012-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. |
| 313 | If optional second argument ALLOW-NEWLINES is non-nil, then allow the | 313 | If optional second argument ALLOW-NEWLINES is non-nil, then allow the |
| 314 | decoding of carriage returns and line feeds in the string, which is normally | 314 | decoding of carriage returns and line feeds in the string, which is normally |
| 315 | forbidden in URL encoding. | 315 | forbidden in URL encoding." |
| 316 | If CODING-SYSTEM is non-nil, interpret the unhexed string as | ||
| 317 | being 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 | '( |