From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#24117: 25.1; url-http-create-request: Multibyte text in HTTP request Date: Mon, 08 Aug 2016 18:18:18 +0200 Message-ID: References: <83d1ltq3p6.fsf@gnu.org> <83popsocg8.fsf@gnu.org> <7fb3540a-7b74-68cf-2c63-66474de26640@yandex.ru> <83mvkvmbv2.fsf@gnu.org> <27168f12-32d2-cb38-45c0-27d3339c75aa@yandex.ru> <83twf0lb5s.fsf@gnu.org> <83lh07i6g3.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1470673268 29742 195.159.176.226 (8 Aug 2016 16:21:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2016 16:21:08 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: stakemorii@gmail.com, 24117@debbugs.gnu.org, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 08 18:21:02 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1bWnIO-0005u7-2y for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Aug 2016 18:20:56 +0200 Original-Received: from localhost ([::1]:58460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWnIK-0007j5-TC for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Aug 2016 12:20:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWnHZ-0007BK-6C for bug-gnu-emacs@gnu.org; Mon, 08 Aug 2016 12:20:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWnHV-0005TG-TT for bug-gnu-emacs@gnu.org; Mon, 08 Aug 2016 12:20:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWnHV-0005TC-Qq for bug-gnu-emacs@gnu.org; Mon, 08 Aug 2016 12:20:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bWnHV-0008J9-KE for bug-gnu-emacs@gnu.org; Mon, 08 Aug 2016 12:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Aug 2016 16:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24117 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24117-submit@debbugs.gnu.org id=B24117.147067314231863 (code B ref 24117); Mon, 08 Aug 2016 16:20:01 +0000 Original-Received: (at 24117) by debbugs.gnu.org; 8 Aug 2016 16:19:02 +0000 Original-Received: from localhost ([127.0.0.1]:60242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWnGU-0008HW-Fd for submit@debbugs.gnu.org; Mon, 08 Aug 2016 12:19:02 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:36258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWnGT-0008HP-6R for 24117@debbugs.gnu.org; Mon, 08 Aug 2016 12:18:57 -0400 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 1bWnGQ-0004uL-9D; Mon, 08 Aug 2016 18:18:56 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAADFBMVEVGKD5URVFoXmGJjYLo 0o+RAAACe0lEQVQokQFwAo/9AP8PQNAJUGqupCrVuAD/g1CgJmBa5hkr/uQAe4G0EKtQGrVVaH/Q APfVeAKugGmlWqK/iACm8VaVlpValupGv3gA6TxlQara2uqpB/4UAPat+lKqqaGulC/oFgDuvRlR rWpWY1B2Zb4ADroKhFkqkpZIW4f+AMQKVllBhAFumFWv/gD/gYA6C1Fk+sEB9ZUA//we0CqhRSrq BUZVAP/5PsCrpAF9GhEEZAD9+CqApooCqjAQBdoAv9Ue4pHLgQedAKr/ABBWb+YerggZNBv//wCq lV55D7lcPlCfhv8AmYFW2auGrr5Je8ABAAkRVsFK1W/9Xp8EFQACVWWiB6rD/rkBwAEABAAVmgL/ w/+uvUJAAEFAAFAVv/++/+uVqgCpEAAAaPW9dKrrqlUAf6QAdpDwmBHp6pqkAP/+gY7L8qql/mpF RAD/qQWWuaELkNvq+W8A//RKlaewC1Hn775vAOxmmqATEAoVqr//WgD/+QJQVQAloAoqe0YA/5C4 QrQAnqZEXq9nAIVL+UKeoaZZCG8uAgBED/x/ommXnQCZ6fwAFQP2vrWipq4kVEp/AOUV0b+qWaa8 KWSaCwDVVplrqqtqnHlRkAIAqrr2afqvRbS4/JQXAP+rxSQKvz8Up9gsWQD/6vQEibIdAKcrT1UA /8AQKqvqAUClrodVAP+BAXZn/gKAqatAlgD/6RTmkvgCQbmrBAEA3rrS1eFQAoJUqVEDAPryAkFS pQqDURKFEQD3wQV6S7Sqw0FngSAAj1gWmWqgq6+CaeCpAFoIWqylom0/jlTh/gD4EGr4akpWv4uJ vT8AkIPq9ms4Av9K6G8f2OUjVxsZWssAAAAASUVORK5CYII= In-Reply-To: <83lh07i6g3.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 08 Aug 2016 19:14:20 +0300") 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:121965 Archived-At: Eli Zaretskii writes: >> It's be sad if >>=20 >> (url-generic-parse-url "http://g=C3=B3ogle.com/f=C3=B3o") >>=20 >> stopped working. > > It's already broken, because that function does nothing special for > non-ASCII characters, although the corresponding RFC says they are not > allowed. No, it does what users expect it to. (url-generic-parse-url "http://g=C3=B3ogle.com/f=C3=B3o") =3D> [cl-struct-url "http" nil nil "g=C3=B3ogle.com" nil "/f=C3=B3o" nil ni= l t nil t] "Aha, so 'g=C3=B3ogle.com' is the domain name." That you have to encode the data returned before doing network stuff (which is what the RFC talks about) is a completely different matter. The function is used to decompose URLs found in nature. Those URLs contain non-ASCII characters. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no