From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23750: 25.0.95; bug in url-retrieve or json.el Date: Sun, 19 Jun 2016 21:25:32 +0300 Message-ID: <83k2hl828z.fsf@gnu.org> References: <358304f6-98e1-fa10-8805-aa9b73db406a@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1466360849 3021 80.91.229.3 (19 Jun 2016 18:27:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Jun 2016 18:27:29 +0000 (UTC) Cc: 23750@debbugs.gnu.org, monnier@IRO.UMontreal.CA, sdl.web@gmail.com To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 19 20:27:19 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bEhRE-0006zf-Kn for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Jun 2016 20:27:17 +0200 Original-Received: from localhost ([::1]:39687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEhRD-0005ZH-Mb for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Jun 2016 14:27:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEhR4-0005Xm-Gi for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2016 14:27:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEhR0-00076o-8S for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2016 14:27:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEhR0-00076k-56 for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2016 14:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bEhR0-00005v-1U for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2016 14:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Jun 2016 18:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23750 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23750-submit@debbugs.gnu.org id=B23750.146636076732762 (code B ref 23750); Sun, 19 Jun 2016 18:27:01 +0000 Original-Received: (at 23750) by debbugs.gnu.org; 19 Jun 2016 18:26:07 +0000 Original-Received: from localhost ([127.0.0.1]:46640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bEhQ7-0008WM-LN for submit@debbugs.gnu.org; Sun, 19 Jun 2016 14:26:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bEhQ6-0008Vu-JQ for 23750@debbugs.gnu.org; Sun, 19 Jun 2016 14:26:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEhQ0-00073Q-Ju for 23750@debbugs.gnu.org; Sun, 19 Jun 2016 14:26:01 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEhPw-00072s-Tk; Sun, 19 Jun 2016 14:25:56 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2807 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bEhPv-0001CA-7c; Sun, 19 Jun 2016 14:25:56 -0400 In-reply-to: (message from Dmitry Gutov on Sun, 19 Jun 2016 21:14:55 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:119787 Archived-At: > Cc: 23750@debbugs.gnu.org, Leo Liu , > Eli Zaretskii > From: Dmitry Gutov > Date: Sun, 19 Jun 2016 21:14:55 +0300 > > On 06/14/2016 03:30 AM, Stefan Monnier wrote: > > > Can't remember why I did so. My best guess is that I tried to mimick > > some earlier behavior. > > OK, thanks anyway. I've pushed the patch to master as > 2ede29575fa22eb7c265117d7511cff9fe02c606. > > Eli, could we have it emacs-25 as well? It's not critical, but it should > make the life of our users easier to flagging problems with the usage of > url-http earlier, in a more appropriate place, with an error, rather > than leaving that up to them to deduce why their HTTP server truncates > the request body. I'd need a very detailed description of the bug, and why this particular solution was used. IME, neither string-to-unibyte not string-as-unibyte should ever be used in applications, their use is more often than not a sign of some basic misunderstanding of text encoding. For starters, how come 8-bit bytes wind up in that function, and what do they stand for?