aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2016-06-22 21:10:11 +0300
committerDmitry Gutov2016-06-22 21:10:11 +0300
commit07a986ea7e0f6310e4452aaaeb8c80a02cc6a82d (patch)
treec9d531d98b9ed8106c67baa15013ba4c731280d6
parenta74683f11603e52350ce49d1d3fe79971357713b (diff)
downloademacs-07a986ea7e0f6310e4452aaaeb8c80a02cc6a82d.tar.gz
emacs-07a986ea7e0f6310e4452aaaeb8c80a02cc6a82d.zip
; Revert "Prohibit multibyte characters in url-http-data"
This reverts commit 2ede29575fa22eb7c265117d7511cff9fe02c606. In favor of a better solution to be pushed to emacs-25.
-rw-r--r--lisp/url/url-http.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el
index 0e6f5d3694b..306b36ae951 100644
--- a/lisp/url/url-http.el
+++ b/lisp/url/url-http.el
@@ -310,10 +310,14 @@ The string is based on `url-privacy-level' and `url-user-agent'."
310 ;; We used to concat directly, but if one of the strings happens 310 ;; We used to concat directly, but if one of the strings happens
311 ;; to being multibyte (even if it only contains pure ASCII) then 311 ;; to being multibyte (even if it only contains pure ASCII) then
312 ;; every string gets converted with `string-MAKE-multibyte' which 312 ;; every string gets converted with `string-MAKE-multibyte' which
313 ;; turns the 127-255 codes into things like latin-1 accented chars. 313 ;; turns the 127-255 codes into things like latin-1 accented chars
314 ;; (it would work right if it used `string-TO-multibyte' instead).
314 ;; So to avoid the problem we force every string to be unibyte. 315 ;; So to avoid the problem we force every string to be unibyte.
315 (mapconcat 316 (mapconcat
316 'string-to-unibyte 317 ;; FIXME: Instead of `string-AS-unibyte' we'd want
318 ;; `string-to-unibyte', so as to properly signal an error if one
319 ;; of the strings contains a multibyte char.
320 'string-as-unibyte
317 (delq nil 321 (delq nil
318 (list 322 (list
319 ;; The request 323 ;; The request