From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sho Takemori Newsgroups: gmane.emacs.bugs Subject: bug#24117: 25.1; url-http-create-request: Multibyte text in HTTP request Date: Sat, 13 Aug 2016 16:31:56 +0900 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> <83k2fri5kc.fsf@gnu.org> <87oa53i3si.fsf@linux-m68k.org> <83bn13i2x2.fsf@gnu.org> <87fuqfhy0q.fsf@linux-m68k.org> <837fbqise6.fsf@gnu.org> <834m6uhu87.fsf@gnu.org> <65f6508f-a464-7f66-fd14-1372dce86aa7@yandex.ru> <83bn10hetr.fsf@gnu.org> <83d1lddud7.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a114178867a6d030539eefe53 X-Trace: blaine.gmane.org 1471073606 21077 195.159.176.226 (13 Aug 2016 07:33:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 Aug 2016 07:33:26 +0000 (UTC) Cc: schwab@linux-m68k.org, Lars Ingebrigtsen , 24117@debbugs.gnu.org, Brief Busters To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 13 09:33:18 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 1bYTRW-0005Gt-0T for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Aug 2016 09:33:18 +0200 Original-Received: from localhost ([::1]:56178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYTRS-0007IM-T4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Aug 2016 03:33:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYTRK-0007I8-Qe for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 03:33:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYTRF-00061a-Sy for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 03:33:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYTRF-00061V-Pw for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 03:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bYTRF-0007mz-IJ for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 03:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sho Takemori Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Aug 2016 07:33: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.147107353229879 (code B ref 24117); Sat, 13 Aug 2016 07:33:01 +0000 Original-Received: (at 24117) by debbugs.gnu.org; 13 Aug 2016 07:32:12 +0000 Original-Received: from localhost ([127.0.0.1]:55688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYTQP-0007lm-2g for submit@debbugs.gnu.org; Sat, 13 Aug 2016 03:32:12 -0400 Original-Received: from mail-oi0-f53.google.com ([209.85.218.53]:33632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYTQJ-0007lE-Ju for 24117@debbugs.gnu.org; Sat, 13 Aug 2016 03:32:07 -0400 Original-Received: by mail-oi0-f53.google.com with SMTP id c15so9149138oig.0 for <24117@debbugs.gnu.org>; Sat, 13 Aug 2016 00:32:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=NOnNPdH4samff4L9BySkrdagaiH/I4lfK5/PsvUZKhA=; b=O/yYi17o/zX/Akg5gmJYC/yRBuKJL5ADt2CEG6BN0PRvOxbBJw1MRf/QkovAZDv6Ej 2aPbfsmRJBhmHVVrNz5HXhZOZbwh/F8+LUMJw5OoKgcvP2R1wXEU2P37g6fOoKXN7RW7 EhRxX84wvwqaiQ3CwFdyMvNFYKhacGm4PFXFhTSRie/1a/FoVdR3E++2LK8ETLiIi9hH MYetFO7boBfH30LefE6LKjyEfnIzb9z+yl9EdlaoqRSvTavQKP/RzR8kjsPvjgb75XFq ab1QJrnJYEdvGvGzZjfPJrvef+lOtwvzpIi6ifRqMZjmEk2RadzJ86391tknqDNUS+g0 uE4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=NOnNPdH4samff4L9BySkrdagaiH/I4lfK5/PsvUZKhA=; b=JkXpfDfkj1ki6Pgw3ty6clmWeV/4Dtgfq7EfZD3C+u6X913aFBxTHq8A69BM1bttKy dVaer8xeeF1BnWurRi7LCxNozGTFVuylPA92+/8HqO8xcO/IZ59yAmwaeSBCmWYjs2ne WndPrwx/uvp0t3tQ4BRgz+RPemvn5n3E116zJT5CMeLRof2rjGxxXuwJ3XRzMLqlctvs Tyhu8Ld8zw2P5LxDIfcnJUYxzcfZBmJzZbLe0GbAdRO5SwoyuxBOn6bSVPQ+OuOD6x66 1mAqPY6QU4+seYpACu/RpVI+U1LYkDc1z+1F71fJ8nl3y5MfBGxHcbJ7RCjdE4NgmZ2t kuAA== X-Gm-Message-State: AEkoouuhDRwfUU7pwNyqM3BDCHKecdmV4s1z0RJwxlCQ0TQbJOz7lhH7ewm9aUZcaWt80yiaiX/cvRPDSmwr1w== X-Received: by 10.157.49.2 with SMTP id e2mr7504479otc.121.1471073517979; Sat, 13 Aug 2016 00:31:57 -0700 (PDT) Original-Received: by 10.157.37.66 with HTTP; Sat, 13 Aug 2016 00:31:56 -0700 (PDT) In-Reply-To: <83d1lddud7.fsf@gnu.org> 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:122152 Archived-At: --001a114178867a6d030539eefe53 Content-Type: multipart/alternative; boundary=001a114178867a6cfd0539eefe51 --001a114178867a6cfd0539eefe51 Content-Type: text/plain; charset=UTF-8 > I guess we need to run url-mime-charset-string through > url-http--encode-string as well. Can you try that? Yes. I attached a patch. 2016-08-13 16:02 GMT+09:00 Eli Zaretskii : > > From: Sho Takemori > > Date: Sat, 13 Aug 2016 09:30:35 +0900 > > Cc: Eli Zaretskii , larsi@gnus.org, schwab@linux-m68k.org, > > 24117@debbugs.gnu.org > > > > But I set the language environment by (set-language-environment > "Japanese") in ~/.emacs.d/init.el. > > With the configration, I still see the same error when using > anaconda-mode. > > > > And url-mime-charset-string in url-http-create-request is a multibyte > stirng > > I guess we need to run url-mime-charset-string through > url-http--encode-string as well. Can you try that? > > Thanks. > --001a114178867a6cfd0539eefe51 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
> I guess we need to run= url-mime-charset-string through
> url-http--encode-string as well.=C2=A0 Can you= try that?

Yes. I attached a patch.

2016-08-13 16:02 GM= T+09:00 Eli Zaretskii <eliz@gnu.org>:
> From: Sho Takemori <= stakemorii@gmail.com>
> Date: Sat, 13 Aug 2016 09:30:35 +0900
> Cc: Eli Zaretskii <eliz@gnu.org= >, larsi@gnus.org, schwab@linux-m68k.org,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0241= 17@debbugs.gnu.org
>
> But I set the language environment by (set-language-environment "= Japanese") in ~/.emacs.d/init.el.
> With the configration, I still see the same error when using anaconda-= mode.
>
> And url-mime-charset-string in url-http-create-request is a multibyte = stirng

I guess we need to run url-mime-charset-string through
url-http--encode-string as well.=C2=A0 Can you try that?

Thanks.

--001a114178867a6cfd0539eefe51-- --001a114178867a6d030539eefe53 Content-Type: text/x-patch; charset=US-ASCII; name="diff.patch" Content-Disposition: attachment; filename="diff.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_irsv39ix0 ZGlmZiAtLWdpdCBhL2xpc3AvdXJsL3VybC1odHRwLmVsIGIvbGlzcC91cmwvdXJsLWh0dHAuZWwK aW5kZXggODYwZTY1Mi4uNTg0MGEwOCAxMDA2NDQKLS0tIGEvbGlzcC91cmwvdXJsLWh0dHAuZWwK KysrIGIvbGlzcC91cmwvdXJsLWh0dHAuZWwKQEAgLTMxMyw5ICszMTMsMTAgQEAgdXJsLWh0dHAt Y3JlYXRlLXJlcXVlc3QKIAkJCSAgKHNldHEgdXJsLW1pbWUtZW5jb2Rpbmctc3RyaW5nICJnemlw IikpKQogICAgICAgICAgICAgICAgICAoY29uY2F0CiAgICAgICAgICAgICAgICAgICAiQWNjZXB0 LWVuY29kaW5nOiAiIHVybC1taW1lLWVuY29kaW5nLXN0cmluZyAiXHJcbiIpKQotICAgICAgICAg ICAgIChpZiB1cmwtbWltZS1jaGFyc2V0LXN0cmluZwotICAgICAgICAgICAgICAgICAoY29uY2F0 Ci0gICAgICAgICAgICAgICAgICAiQWNjZXB0LWNoYXJzZXQ6ICIgdXJsLW1pbWUtY2hhcnNldC1z dHJpbmcgIlxyXG4iKSkKKyAgICAgICAgICAgICAodXJsLWh0dHAtLWVuY29kZS1zdHJpbmcKKyAg ICAgICAgICAgICAgKGlmIHVybC1taW1lLWNoYXJzZXQtc3RyaW5nCisgICAgICAgICAgICAgICAg ICAoY29uY2F0CisgICAgICAgICAgICAgICAgICAgIkFjY2VwdC1jaGFyc2V0OiAiIHVybC1taW1l LWNoYXJzZXQtc3RyaW5nICJcclxuIikpKQogICAgICAgICAgICAgIDs7IExhbmd1YWdlcyB3ZSB1 bmRlcnN0YW5kCiAgICAgICAgICAgICAgKGlmIHVybC1taW1lLWxhbmd1YWdlLXN0cmluZwogICAg ICAgICAgICAgICAgICAoY29uY2F0Cg== --001a114178867a6d030539eefe53--