From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#23750: 25.0.95; bug in url-retrieve or json.el Date: Mon, 13 Jun 2016 13:55:15 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1465845274 1768 80.91.229.3 (13 Jun 2016 19:14:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2016 19:14:34 +0000 (UTC) Cc: 23750@debbugs.gnu.org, Leo Liu To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 13 21:14:24 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 1bCXJV-0001D0-QU for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Jun 2016 21:14:21 +0200 Original-Received: from localhost ([::1]:58788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCXJR-0008VI-Dv for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Jun 2016 15:14:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCXGM-0005jS-VP for bug-gnu-emacs@gnu.org; Mon, 13 Jun 2016 15:11:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCXGH-0007wN-TO for bug-gnu-emacs@gnu.org; Mon, 13 Jun 2016 15:11:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55147) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCXGH-0007wJ-Pl for bug-gnu-emacs@gnu.org; Mon, 13 Jun 2016 15:11:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bCXGH-0003Jl-Jr for bug-gnu-emacs@gnu.org; Mon, 13 Jun 2016 15:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Jun 2016 19:11: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.146584502112706 (code B ref 23750); Mon, 13 Jun 2016 19:11:01 +0000 Original-Received: (at 23750) by debbugs.gnu.org; 13 Jun 2016 19:10:21 +0000 Original-Received: from localhost ([127.0.0.1]:39251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCXFc-0003Ir-OU for submit@debbugs.gnu.org; Mon, 13 Jun 2016 15:10:20 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:57990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCXFX-0003Id-OD for 23750@debbugs.gnu.org; Mon, 13 Jun 2016 15:10:19 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id u5DJAFNx023848; Mon, 13 Jun 2016 15:10:16 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id A5AFEAE580; Mon, 13 Jun 2016 13:55:15 -0400 (EDT) In-Reply-To: (Dmitry Gutov's message of "Mon, 13 Jun 2016 18:02:13 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.2 X-NAI-Spam-Rules: 2 Rules triggered TRK_NCM1=0.2, RV5705=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5705> : inlines <4928> : streams <1651430> : uri <2230089> 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:119511 Archived-At: >> =B9 https://github.com/ternjs/tern/issues/719 > Investigation shows that the problem occurs when url-http-data is multiby= te > and (length url-http-data) differs from (length (string-as-unibyte > url-http-data)), because we send a wrong value in Content-length. > Changing url-http-create-request like this will make the problem more > obvious for anyone else that hits it, patch attached. > Stefan, did you have a particular situation in mind where this might be b= ad, > when you wrote the FIXME? No, nothing in particular. Just that `string-as-unibyte` is generally synonymous with "the author is confused about how coding systems work", aka "trouble". Stefan