1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

; Revert "Prohibit multibyte characters in url-http-data"

This reverts commit 2ede29575f.

In favor of a better solution to be pushed to emacs-25.
This commit is contained in:
Dmitry Gutov 2016-06-22 21:10:11 +03:00
parent a74683f116
commit 07a986ea7e

View file

@ -310,10 +310,14 @@ The string is based on `url-privacy-level' and `url-user-agent'."
;; We used to concat directly, but if one of the strings happens
;; to being multibyte (even if it only contains pure ASCII) then
;; every string gets converted with `string-MAKE-multibyte' which
;; turns the 127-255 codes into things like latin-1 accented chars.
;; turns the 127-255 codes into things like latin-1 accented chars
;; (it would work right if it used `string-TO-multibyte' instead).
;; So to avoid the problem we force every string to be unibyte.
(mapconcat
'string-to-unibyte
;; FIXME: Instead of `string-AS-unibyte' we'd want
;; `string-to-unibyte', so as to properly signal an error if one
;; of the strings contains a multibyte char.
'string-as-unibyte
(delq nil
(list
;; The request