From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24117: 25.1; url-http-create-request: Multibyte text in HTTP request Date: Mon, 01 Aug 2016 16:17:43 +0300 Message-ID: <83popsocg8.fsf@gnu.org> References: <83d1ltq3p6.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1470057572 23070 80.91.229.8 (1 Aug 2016 13:19:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 1 Aug 2016 13:19:32 +0000 (UTC) Cc: 24117@debbugs.gnu.org To: Sho Takemori Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 01 15:19: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 1bUD7m-0005fe-3u for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Aug 2016 15:19:18 +0200 Original-Received: from localhost ([::1]:50243 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUD7i-0006Gl-8X for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Aug 2016 09:19:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUD7c-0006G3-6c for bug-gnu-emacs@gnu.org; Mon, 01 Aug 2016 09:19:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUD7W-0006pK-K4 for bug-gnu-emacs@gnu.org; Mon, 01 Aug 2016 09:19:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55448) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUD7W-0006pE-GB for bug-gnu-emacs@gnu.org; Mon, 01 Aug 2016 09:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bUD7W-0004dy-8N for bug-gnu-emacs@gnu.org; Mon, 01 Aug 2016 09:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Aug 2016 13:19:02 +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.147005749917794 (code B ref 24117); Mon, 01 Aug 2016 13:19:02 +0000 Original-Received: (at 24117) by debbugs.gnu.org; 1 Aug 2016 13:18:19 +0000 Original-Received: from localhost ([127.0.0.1]:52745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUD6l-0004ct-Ff for submit@debbugs.gnu.org; Mon, 01 Aug 2016 09:18:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUD6f-0004ca-Nx for 24117@debbugs.gnu.org; Mon, 01 Aug 2016 09:18:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUD6W-0006h6-65 for 24117@debbugs.gnu.org; Mon, 01 Aug 2016 09:18:04 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUD6W-0006gu-2h; Mon, 01 Aug 2016 09:18:00 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4739 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bUD6U-0000MZ-8b; Mon, 01 Aug 2016 09:17:58 -0400 In-reply-to: (message from Sho Takemori on Mon, 1 Aug 2016 08:21:39 +0900) 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:121754 Archived-At: > From: Sho Takemori > Date: Mon, 1 Aug 2016 08:21:39 +0900 > Cc: 24117@debbugs.gnu.org > > It seems that anaconda-mode use two global variables (url-request-method and url-request-data) > to make generate the request. > > https://github.com/proofit404/anaconda-mode/blob/master/anaconda-mode.el#L349 > > url-request-method is bound to an ASCII string "POST". > In my situation, url-request-data is bound to a unibyte string as below. I don't see any non-ASCII characters in that string. So how come it causes the error message? > The file contains a multibyte string "∧" I don't see this character in the string you show. > and anaconda-mode converts it to "\342\210\247". Which is a correct UTF-8 encoding of that character, and should produce a unibyte string. To summarize, I still don't understand how come the error happened. Could you perhaps step with Edebug into url-http-create-request, and see what is going on there? Or come up with a reproducible recipe of calling url-http-create-request that I could examine on my machine? Thanks.