From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.devel Subject: Re: url-encode-url: do not add a trailing slash for "bare" URLs (with no file/directory) Date: Thu, 13 Mar 2014 14:50:44 +0100 Message-ID: <87ioriw6kr.fsf@bzg.ath.cx> References: <87k3bzhg81.fsf@bzg.ath.cx> <87siqnzded.fsf@bzg.ath.cx> <87txb2msj8.fsf@bzg.ath.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1394718655 14903 80.91.229.3 (13 Mar 2014 13:50:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Mar 2014 13:50:55 +0000 (UTC) Cc: emacs-devel@gnu.org, David Caldwell To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 13 14:51:04 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WO62K-0004ht-7E for ged-emacs-devel@m.gmane.org; Thu, 13 Mar 2014 14:51:04 +0100 Original-Received: from localhost ([::1]:39053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WO62J-00079E-Qf for ged-emacs-devel@m.gmane.org; Thu, 13 Mar 2014 09:51:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WO62B-00071o-7n for emacs-devel@gnu.org; Thu, 13 Mar 2014 09:50:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WO626-0006ww-F5 for emacs-devel@gnu.org; Thu, 13 Mar 2014 09:50:55 -0400 Original-Received: from rs249.mailgun.us ([209.61.151.249]:36754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WO626-0006wo-7m for emacs-devel@gnu.org; Thu, 13 Mar 2014 09:50:50 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=kickhub.com; q=dns/txt; s=mailo; t=1394718648; h=From: To: Cc: Subject: In-Reply-To: References: Date: Message-Id: Mime-Version: Content-Type: Sender; bh=Afn3CVLZmSurl2P/4Am4WjpHuLOZmmYfNZ7B7MaK/A0=; b=D0aYynTs3F7zrw92cg9tfRLNBlpkt7WAmlaOF0hS/XOSirbTdRRCGWzj/40XeSpvXil33JDM 1mn+pFftNNKwErxng9OE7QRuqCB52KiCVjN8W6wl+fY2fcK/PQZHTfj9U42aLvMdlLR5ahMr gLJZenv2JAVfrvebpuENJUoB/q8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=kickhub.com; s=mailo; q=dns; h=From: To: Cc: Subject: In-Reply-To: References: Date: Message-Id: Mime-Version: Content-Type: Sender; b=KcQUNNh+5kPXvwH4N4ZMH3HD7dZlekMKeU47Du7r6iUPlTQzDybJI6ctB1/EgXXYSgYF+9 2uRxsbKEkRi4/EIS29Mif99PHY7HEinF2QNq+whahwmDD9ZJkre/iDOcnHm553B1nrjKLWXd L998Tu/Iid/mYL2DnnKIC+ySmdAtw= Original-Received: from bzg.localdomain (AMontsouris-651-1-244-140.w92-163.abo.wanadoo.fr [92.163.19.140]) by mxa.mailgun.org with ESMTP id 5321b7b6.60ac340-in2; Thu, 13 Mar 2014 13:50:46 -0000 (UTC) Original-Received: by bzg.localdomain (Postfix, from userid 1000) id 43B171C214FB; Thu, 13 Mar 2014 14:50:44 +0100 (CET) In-Reply-To: (Stefan Monnier's message of "Thu, 13 Mar 2014 09:12:29 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Mailgun-Sid: WyIxNjA5MyIsICJlbWFjcy1kZXZlbEBnbnUub3JnIiwgIjE2NDg4Il0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.61.151.249 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:170316 Archived-At: Stefan Monnier writes: >> OKay, but the patch does not really change the output of >> (url-encode-url "http://www.gnu.org#"), except the for trailing slash. > > But it changes the output of (url-encode-url "http://www.gnu.org/#foo"), > doesn't it. No it doesn't. With and without my patch, it produces "http://www.gnu.org/#foo" as expected. > And it changes it from one that works with curl to one that > doesn't work with curl, right? No: curl can't parse http://www.gnu.org#foo (while firefox can). > I personally find http://www.gnu.org more weird than > http://www.gnu.org/ To be more precise, I find it weird that `url-encode-url' _adds_ something that is not needed. -- Bastien