[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug#23750: 25.0.95; bug in url-retrieve or json.el
From: |
Lars Ingebrigtsen |
Subject: |
Re: bug#23750: 25.0.95; bug in url-retrieve or json.el |
Date: |
Fri, 02 Dec 2016 16:29:15 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Dmitry Gutov <address@hidden> writes:
> - (unless (= (string-bytes request)
> - (length request))
> - (error "Multibyte text in HTTP request: %s" request))
> + (when (mutibyte-string-p request)
> + (error "Multibyte text in HTTP request: %s, please translate
This is going to break many current callers. Most people aren't doing
anything as weird as trying to transmit non-ASCII text via any of these
headers (it's a very uncommon thing to do), but are just passing in
normal Emacs strings (containing nothing by ASCII, as is proper).
These will all fail if you do this, for no real gain.
Sorry to keep harping on about this, but the current url-* interface is
inadequate. We should leave it be and move on to create a new,
well-defined url-fetching interface.
I hope to get time to do that during my next holiday, which should be in
February.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Eli Zaretskii, 2016/12/01
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Dmitry Gutov, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Eli Zaretskii, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Yuri Khan, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Eli Zaretskii, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Lars Ingebrigtsen, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Eli Zaretskii, 2016/12/02
Re: bug#23750: 25.0.95; bug in url-retrieve or json.el,
Lars Ingebrigtsen <=
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Dmitry Gutov, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Lars Ingebrigtsen, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Dmitry Gutov, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Lars Ingebrigtsen, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Dmitry Gutov, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Lars Ingebrigtsen, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Dmitry Gutov, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Lars Ingebrigtsen, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Dmitry Gutov, 2016/12/02
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Eli Zaretskii, 2016/12/03