[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: |
Sat, 03 Dec 2016 11:01:52 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
> How do you propose to compute the number of transferred octets, given
> that the URL request payload is a string?
Just use `string-bytes' instead of `length'. This happens to work since
almost all web services expect utf-8, and our strings happen to be
utf-8, too. (The few callers that are sending a different charset
already presumably know to encode their data, or their applications
would be failing already.)
Yes, it's yucky, but this is an ill-defined function. And we should
emphasise backwards compatibility instead of breaking people's code, I
think.
--
(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, (continued)
- 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
- 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, Stefan Monnier, 2016/12/03
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Lars Ingebrigtsen, 2016/12/03
- Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Andreas Schwab, 2016/12/03
Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Philipp Stephani, 2016/12/28
Re: bug#23750: 25.0.95; bug in url-retrieve or json.el, Philipp Stephani, 2016/12/28