From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: fixing url-unhex-string for unicode/multi-byte charsets Date: Fri, 06 Nov 2020 14:06:21 +0200 Message-ID: <83o8ka8zb6.fsf@gnu.org> References: <20201106075457.ietypgzttucwog6z@E15-2016.optimum.net> <83tuu29afs.fsf@gnu.org> <20201106103446.ha2ttuhouep5dyxd@E15-2016.optimum.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6145"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Boruch Baum Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 06 13:07:06 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kb0WH-0001Sx-QF for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Nov 2020 13:07:05 +0100 Original-Received: from localhost ([::1]:46374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kb0WG-0000qo-TN for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Nov 2020 07:07:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kb0Vj-0000Pp-6f for emacs-devel@gnu.org; Fri, 06 Nov 2020 07:06:31 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59456) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kb0Vi-0005i8-Ts; Fri, 06 Nov 2020 07:06:30 -0500 Original-Received: from [176.228.60.248] (port=1626 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kb0VZ-00008m-Ts; Fri, 06 Nov 2020 07:06:29 -0500 In-Reply-To: <20201106103446.ha2ttuhouep5dyxd@E15-2016.optimum.net> (message from Boruch Baum on Fri, 6 Nov 2020 05:34:46 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:258806 Archived-At: > Date: Fri, 6 Nov 2020 05:34:46 -0500 > From: Boruch Baum > Cc: emacs-devel@gnu.org > > > I believe in the trash case we already know these are file names, so > > at least some of what eww-decode-url-file-name does is unnecessary, > > IMO. > > This all started from Arthur Miller's observation that restoring a > 'remote' file was failing. He said that's a new feature in emacs, that > one can trash a file over ssh or some other protocol and the file is > trashed to your local file system. In that case, Arthur pointed out to > the list that the colon character of the protocol wasn't being decoded. > Once emacs needs to account for remotes, it needs to account for the > protocols and urls of those remotes. A remote file name is not a URL, especially not when we talk about encoding non-ASCII characters. The conventions and the defaults are different.