From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: bug#23750: 25.0.95; bug in url-retrieve or json.el Date: Sat, 03 Dec 2016 11:01:52 +0100 Message-ID: References: <6d0c8c2e-8428-2fdb-0d6e-899f7b9d7ffd@nifty.com> <4e12d4ad-cd6b-3087-5d7c-449d4c1886e2@yandex.ru> <83lgw1q9uu.fsf@gnu.org> <83eg1tq8is.fsf@gnu.org> <787e5206-53e0-752f-a339-4608d2f7ad39@yandex.ru> <837f7lq6lg.fsf@gnu.org> <83bmwvpo0o.fsf@gnu.org> <04e2da4e-1fa3-4483-459c-32f272378486@yandex.ru> <8508920e-097f-0b2a-0558-49973ea0def6@yandex.ru> <765199a5-1ca1-da30-9414-93b40f9406d6@yandex.ru> <837f7hmnxn.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1480759336 24879 195.159.176.226 (3 Dec 2016 10:02:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Dec 2016 10:02:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: p.stephani2@gmail.com, emacs-devel@gnu.org, kentaro.nakazawa@nifty.com, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 03 11:02:12 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cD791-0005eE-Ah for ged-emacs-devel@m.gmane.org; Sat, 03 Dec 2016 11:02:11 +0100 Original-Received: from localhost ([::1]:50427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cD795-0008Pa-7n for ged-emacs-devel@m.gmane.org; Sat, 03 Dec 2016 05:02:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cD78y-0008PI-SK for emacs-devel@gnu.org; Sat, 03 Dec 2016 05:02:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cD78v-0007k3-PW for emacs-devel@gnu.org; Sat, 03 Dec 2016 05:02:08 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:35822) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cD78v-0007jd-J5; Sat, 03 Dec 2016 05:02:05 -0500 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1cD78j-0005Rs-7U; Sat, 03 Dec 2016 11:01:57 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUAAADXxsUBAAAdCAtH GR3///8uDhGCP0IFAgIRBQe9/z9yAAACLElEQVQ4jWXUP4/aMBQAcMtDlRsj9cRquadr2FCN7vDY YiXwAW6vmiiErRG5WGwoIGpv6IJy9rftM9URh74hg396z39fkBxG8vryL9DHSDiC0TAM74dQfQ/D Kl/5IJIqkXIEUKcDyITIhJSdEDl79oFlACIxhjF+gdCFgzaHEGtjrX2XpZdhWsZYymdKqbOU5X34 ckGUWmUdLRBCd7C+awaA0ta2BQAWiQdc0Ugr9QaAfGi5ajDU3zmAhV9hzE1DNWMnDDD1gAFEewCX cfAgX0KdLs8BKHr0YWtn+gJQy4d4mxV7B4EaZohtUhzhTE6BbcgXHzYA8Vmexrlp7oawPoppOTnM DQn+g6ycnOv9txsouiorT8+12uEhLLoqikm31m/IOytRy2VXYYVWy4jcwPxcYYo0LDda9SDrcj6t KIEMvUM+fC43U4kb1KUGk+cB1Jl8jN3F7Jo/t3DYIKiG0NdbOB5Rx+ESHwZQZRszxq2FZ3EYwrrZ BUg1BKNPHozKeufKdzP4DmHrrhvteUPgyfnwG4ZJwFtrIuqB3MNbIzjgrh72YQyToijIzS1EAFhh SiPYSOIdYkQ01noc5zk36r0HTonuOH8QMBUmPdSWIHNixV1sKMKmh6WDCSsw7Bxm78FogmY/05nm Fl63OvSgKGW/Un4WrqGfpj00mLY/UtaJuevF7AqzJtJskdp9FufQo14G9ObTQnDoUA4pT68fwBW0 cyrWSrtfgGUf8BeSHmlnoIBC4gAAAABJRU5ErkJggg== In-Reply-To: <837f7hmnxn.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 03 Dec 2016 10:12:04 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:209977 Archived-At: Eli Zaretskii 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