emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r107842: Revert previous url-util pat


From: Lars Magne Ingebrigtsen
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r107842: Revert previous url-util patch.
Date: Tue, 10 Apr 2012 19:02:04 +0200
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 107842
committer: Lars Magne Ingebrigtsen <address@hidden>
branch nick: trunk
timestamp: Tue 2012-04-10 19:02:04 +0200
message:
  Revert previous url-util patch.
  
  The caller can as easily do the decoding themselves.
modified:
  lisp/url/ChangeLog
  lisp/url/url-util.el
=== modified file 'lisp/url/ChangeLog'
--- a/lisp/url/ChangeLog        2012-04-10 11:22:08 +0000
+++ b/lisp/url/ChangeLog        2012-04-10 17:02:04 +0000
@@ -10,9 +10,6 @@
 
 2012-04-10  Lars Magne Ingebrigtsen  <address@hidden>
 
-       * url-util.el (url-unhex-string): Add an optional CODING-SYSTEM
-       parameter (bug#6252).
-
        * url-domsurf.el: New file (bug#1401).
 
        * url-cookie.el (url-cookie-two-dot-domains): Remove.

=== modified file 'lisp/url/url-util.el'
--- a/lisp/url/url-util.el      2012-04-10 02:14:13 +0000
+++ b/lisp/url/url-util.el      2012-04-10 17:02:04 +0000
@@ -308,13 +308,11 @@
 ;;     str))
 
 ;;;###autoload
-(defun url-unhex-string (str &optional allow-newlines coding-system)
+(defun url-unhex-string (str &optional allow-newlines)
   "Remove %XX embedded spaces, etc in a URL.
 If optional second argument ALLOW-NEWLINES is non-nil, then allow the
 decoding of carriage returns and line feeds in the string, which is normally
-forbidden in URL encoding.
-If CODING-SYSTEM is non-nil, interpret the unhexed string as
-being encoded in that coding system."
+forbidden in URL encoding."
   (setq str (or str ""))
   (let ((tmp "")
        (case-fold-search t))
@@ -333,9 +331,7 @@
                    (t (byte-to-string code))))
              str (substring str (match-end 0)))))
     (setq tmp (concat tmp str))
-    (if coding-system
-       (decode-coding-string tmp coding-system)
-      tmp)))
+    tmp))
 
 (defconst url-unreserved-chars
   '(


reply via email to

[Prev in Thread] Current Thread [Next in Thread]