From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alain Schneble Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] url: Wrap cookie headers in url-http--encode-string. Date: Fri, 9 Sep 2016 21:47:23 +0200 Message-ID: <861t0srh2s.fsf@realize.ch> References: <20160907153014.15752-1-toke@toke.dk> <87inu7k5z4.fsf@toke.dk> <83bmzzaawr.fsf@gnu.org> <877fank1oc.fsf@toke.dk> <87inu6iim8.fsf@toke.dk> <2563921f-d20d-753b-09eb-c8671bc5b6d6@yandex.ru> <87a8fiidso.fsf@toke.dk> <86d1kdq7cs.fsf@realize.ch> <83bmzwaopr.fsf@gnu.org> <8660q4ria9.fsf@realize.ch> <8360q4amyx.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1473450512 26534 195.159.176.226 (9 Sep 2016 19:48:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Sep 2016 19:48:32 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (windows-nt) Cc: toke@toke.dk, emacs-devel@gnu.org, monnier@iro.umontreal.ca, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 09 21:48:27 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 1biRmj-0006Fk-LP for ged-emacs-devel@m.gmane.org; Fri, 09 Sep 2016 21:48:25 +0200 Original-Received: from localhost ([::1]:59927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biRmh-0007fP-O3 for ged-emacs-devel@m.gmane.org; Fri, 09 Sep 2016 15:48:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biRm5-0007fH-8L for emacs-devel@gnu.org; Fri, 09 Sep 2016 15:47:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biRm4-0002U4-BG for emacs-devel@gnu.org; Fri, 09 Sep 2016 15:47:45 -0400 Original-Received: from clientmail.realize.ch ([46.140.89.53]:3700) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1biRlz-0002SX-6k; Fri, 09 Sep 2016 15:47:39 -0400 Original-Received: from rintintin.hq.realize.ch.lan.rit ([192.168.0.105]) by clientmail.realize.ch ; Fri, 9 Sep 2016 21:47:33 +0200 Original-Received: from MYNGB (192.168.66.64) by rintintin.hq.realize.ch.lan.rit (192.168.0.105) with Microsoft SMTP Server (TLS) id 15.0.516.32; Fri, 9 Sep 2016 21:47:25 +0200 In-Reply-To: <8360q4amyx.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 09 Sep 2016 22:32:06 +0300") X-ClientProxiedBy: rintintin.hq.realize.ch.lan.rit (192.168.0.105) To rintintin.hq.realize.ch.lan.rit (192.168.0.105) X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] X-Received-From: 46.140.89.53 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:207333 Archived-At: Eli Zaretskii writes: > If you just generate an ASCII string from ASCII characters, it will > usually be unibyte. If you take it as a substring from a multibyte > buffer, it will usually be multibyte. Thanks for your patience. > That's not the issue. The issue is whether a cookie-value can > legitimately have non-ASCII characters. If it can, then we must > _encode_ the cookie-value, as that is the only correct way of getting > a unibyte string from non-ASCII characters. And you pointed to an RFC > that seems to say non-ASCII characters in cookies are possible. Yes true, but I thought that maybe fixing this as described could be a viable non-invasive alternative for the upcoming 25.1 release.