From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: bug#23750: 25.0.95; bug in url-retrieve or json.el Date: Sat, 3 Dec 2016 01:13:33 +0200 Message-ID: <765199a5-1ca1-da30-9414-93b40f9406d6@yandex.ru> References: <6d0c8c2e-8428-2fdb-0d6e-899f7b9d7ffd@nifty.com> <4dc615e7-ec73-60a5-426e-0d6986f15d76@yandex.ru> <0cb406fb-ffc4-a4ad-557a-2cacc99b8e75@nifty.com> <86ccb4af-5719-c017-26bb-fc06b4c904d2@yandex.ru> <83r35uxkr5.fsf@gnu.org> <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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1480720427 27340 195.159.176.226 (2 Dec 2016 23:13:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Dec 2016 23:13:47 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Thunderbird/50.0 Cc: p.stephani2@gmail.com, Eli Zaretskii , kentaro.nakazawa@nifty.com, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 03 00:13:43 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 1cCx1T-00064x-MB for ged-emacs-devel@m.gmane.org; Sat, 03 Dec 2016 00:13:43 +0100 Original-Received: from localhost ([::1]:36921 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCx1X-0003Tt-Kk for ged-emacs-devel@m.gmane.org; Fri, 02 Dec 2016 18:13:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCx1R-0003Tn-1r for emacs-devel@gnu.org; Fri, 02 Dec 2016 18:13:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCx1N-00042M-Qz for emacs-devel@gnu.org; Fri, 02 Dec 2016 18:13:41 -0500 Original-Received: from mail-wj0-x241.google.com ([2a00:1450:400c:c01::241]:35050) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cCx1N-00042D-Ka; Fri, 02 Dec 2016 18:13:37 -0500 Original-Received: by mail-wj0-x241.google.com with SMTP id he10so17749194wjc.2; Fri, 02 Dec 2016 15:13:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=FJ7FQ3yshWqvZRkeOMdaef4lxIzCzC4zQI8J2FTxIf8=; b=d7b5UKO0PTzpfjvCSL4TTy6LaOoH0hAY9SSXwdkzuJlWdYNU1nN1jqn0Aw4YhDqxUO fqAfSKfPSjQ2VCv1OtnS9xJJ6iXKjvQo6D+7jeGoHkp1jiXqwjMAyIS5T2RlW6JvQo0L 7TBZdZ1WS9cqDfu7oHYGbvLP7DsSTsYlUzYTjd++dtS/cQbiyQnojJpLsRl+HpwBo7at IHgg4pqa4hB6PPQbrfTX6GhHcpLxjEoE+6zjX0j3ou0tbRvpSj5+eDL5+S4Gy2k1ErPI KFiPDbCyP1yAaOfy6G6TXXxi7K96jhzSVIpv5KpfXnZNNxaEAvUPZdKL6HgWhlNpH2hx p5XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FJ7FQ3yshWqvZRkeOMdaef4lxIzCzC4zQI8J2FTxIf8=; b=RytofdjgsXl1iU7GB0gKwni8wJppCMDUnBEc3pgQEEP1XUGqvt4MwUSkvFaoYsPS44 iEOXDqXDllX8YoOWKgfSzxTTndvPDJSwWKgWHkknd8ekykClrU9S82bnyWOymdVvacwQ vgRQ+GcRiMBg3/ytLbE8sNq6vrQy3QLIsJ0/IrvMAZ8/jp3UK9S8+UQ/WktKbm+JqRtt byq0lCq78kRQ0s/sz4KWE9XiGDPjwOTQlCBl4vkq2ozoK0Of9DqipU6ST7MoUBgjNCYv RCjbpyix6ljSFwhhprEz5qZm0m+IQ5nlV9dqa7hk5w/9uQ/IqTwrU///mn3Q0v/MrYVS RxOw== X-Gm-Message-State: AKaTC02U1zj5YaE6t2fbAmCDFovq8OaKxA+/PUscFrVO6xvJnGdEzhCz2Z2X+yukMc4ZsQ== X-Received: by 10.194.66.101 with SMTP id e5mr39265852wjt.172.1480720416371; Fri, 02 Dec 2016 15:13:36 -0800 (PST) Original-Received: from [192.168.1.3] ([185.105.173.41]) by smtp.googlemail.com with ESMTPSA id ba10sm7772074wjb.32.2016.12.02.15.13.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Dec 2016 15:13:35 -0800 (PST) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c01::241 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:209954 Archived-At: On 02.12.2016 18:31, Lars Ingebrigtsen wrote: > Normal web applications require that you URL-encode (or similar) any > data you send to them. These encodings are ASCII only. > > Here's a typical example of how this is used: > > (let ((url-request-method "POST") > (url-request-extra-headers > (list (cons "Content-Type" > (concat "multipart/form-data; boundary=" > boundary)))) > (url-request-data > (mm-url-encode-multipart-form-data values boundary))) Thanks! > The output from mm-url-encode-multipart-form-data is ASCII, and is > typically multibyte. If we make the proposed change, this function will violate the contract on url-request-data (if the described above is its main use case). Luckily, this function is part of Emacs, so we can fix it in the same patch.