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: Tue, 21 Jun 2016 05:30:04 +0300 Message-ID: <83porb6zpv.fsf@gnu.org> References: <358304f6-98e1-fa10-8805-aa9b73db406a@yandex.ru> <83k2hl828z.fsf@gnu.org> <83h9co8twu.fsf@gnu.org> <838ty07wno.fsf@gnu.org> <83r3br7gy0.fsf@gnu.org> <835e315a-e4c3-17a4-c2ee-7d8d5cc090b4@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1466476381 22974 80.91.229.3 (21 Jun 2016 02:33:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jun 2016 02:33:01 +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 Tue Jun 21 04:32:45 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 1bFBU4-0005Oh-Vg for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Jun 2016 04:32:13 +0200 Original-Received: from localhost ([::1]:47600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFBU3-0007dV-Uz for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jun 2016 22:32:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFBTx-0007dQ-5n for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2016 22:32:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFBTt-0007d3-RK for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2016 22:32:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFBTt-0007cz-O5 for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2016 22:32:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bFBTt-0002PC-Jo for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2016 22:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Jun 2016 02:32: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.14664762719187 (code B ref 23750); Tue, 21 Jun 2016 02:32:01 +0000 Original-Received: (at 23750) by debbugs.gnu.org; 21 Jun 2016 02:31:11 +0000 Original-Received: from localhost ([127.0.0.1]:48209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFBT5-0002O7-Hi for submit@debbugs.gnu.org; Mon, 20 Jun 2016 22:31:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFBT3-0002Nu-Mr for 23750@debbugs.gnu.org; Mon, 20 Jun 2016 22:31:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFBSx-0007V1-P3 for 23750@debbugs.gnu.org; Mon, 20 Jun 2016 22:31:04 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFBSs-0007U8-55; Mon, 20 Jun 2016 22:30:58 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4080 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bFBSq-0008PE-3u; Mon, 20 Jun 2016 22:30:56 -0400 In-reply-to: <835e315a-e4c3-17a4-c2ee-7d8d5cc090b4@yandex.ru> (message from Dmitry Gutov on Mon, 20 Jun 2016 23:27:01 +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:119860 Archived-At: > Cc: 23750@debbugs.gnu.org, monnier@IRO.UMontreal.CA, sdl.web@gmail.com > From: Dmitry Gutov > Date: Mon, 20 Jun 2016 23:27:01 +0300 > > On 06/20/2016 11:17 PM, Eli Zaretskii wrote: > > > We can replace the call to multibyte-string-p with a comparison of > > what 'length' and 'string-bytes' return. That should overcome this > > issue. > > Why not just call string-to-unibyte? Because (a) I don't want to see that function in our sources, ever, and (b) you don't have any control on the error message it produces, which is not appropriate for application-level checks.