From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Boruch Baum Newsgroups: gmane.emacs.devel Subject: Re: fixing url-unhex-string for unicode/multi-byte charsets Date: Fri, 6 Nov 2020 05:34:46 -0500 Message-ID: <20201106103446.ha2ttuhouep5dyxd@E15-2016.optimum.net> References: <20201106075457.ietypgzttucwog6z@E15-2016.optimum.net> <83tuu29afs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13800"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 06 11:38:55 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 1kaz8x-0003W8-GE for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Nov 2020 11:38:55 +0100 Original-Received: from localhost ([::1]:54998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaz8w-0006SW-Ax for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Nov 2020 05:38:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaz52-0003ye-I9 for emacs-devel@gnu.org; Fri, 06 Nov 2020 05:34:52 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:55681) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaz50-00038f-N6; Fri, 06 Nov 2020 05:34:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1604658888; bh=oSebBMk48yiU+OeQFIcd8jQF1NJuBh9SgMukkDfVmcw=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=I69MES5YzPwFsxy7Blou60V96V0R3cvUPcAZ3UM2LwG1FHEQj6bnq1VeKr76spymr CV+Rcd6RNKZq/YPXwf8bjef0BKOcvyV7kV+VVo61lGE92WmwjIQR0KSyrhIi6plAA/ n+ZAehzQlX96q2Xv1wPTj2CFd819DXN3WbZau1b4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from E15-2016.optimum.net ([70.19.86.82]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MMXUD-1kroyd1dB9-00Jbjv; Fri, 06 Nov 2020 11:34:48 +0100 Content-Disposition: inline In-Reply-To: <83tuu29afs.fsf@gnu.org> X-Provags-ID: V03:K1:RB8qmmy6D8O2pFns/onIj6OkQ+4a958M/B2t3MX662QatIubBbO NyMkInlLGeN2XImeBuRWpovynoEDsFPQlgrIumfmbVVJgpWshANE+v8fevLJfzJU2YQeXxR zV/i1WiHBmJp4dNp0IjLnhPAnxIJcKu2h29RLHWI4wVJxPeWqoEzjroczaRpbjs7firrdw0 w8yKK2nquoxGoReEwubQg== X-UI-Out-Filterresults: notjunk:1;V03:K0:1Ee63c/Olnw=:QwuQSTo7ErUwGJnFPtZfsm 0JIuf1zUzijZpVeCjtlIo/GiFvWjTBucSAPk7T/8/Ydl6vFPFPAkFwu/WHOXXzzNUmc+5/F9a VHxFM2ldfSULSQTM3+XNcB2T03fwsEZlvWPRNsErOHjIpRrpG/S9UaAcugFXZs2vW8OdZqdXh 9HvyIQZFky3ATnLhtEZpsOTrXIMg0Z7ZR6vxOHS04mWn8opU6vt6KI1GB3yxgbX4jf8aML6NV 0BNHrl2lcMKN7SfYIAt041TrTLo9l0P8a0cW4q0xrCQ3XqAaJBHk5RkXswGvv6HyENUPYDP4E mY2mILek/MG9KG+0FDdplmxMNzeASTph0Wa29x9gqAxcnRYQ30bCuuohMtO5ExI0vSpOcmqyn IalCq41s/sRdBLniiQ+gNZ/32E4j8QLzMr/iR6SNsEIncggTPR0WTFPqWyj+yfIOuUL8WNkS3 Z9YAPaJOHOn2se7HP9QqI0ml8Lg8vv4gluY6j9bJiL2Up5WZp1aSdbCNPcgqybRolCsxvnxLx KOujhmQMuGqjgKkVG3OujMjBIb7wFC288rvIj6Hcg85VgmI93cDvmzgHFaJ5CsACZqXjajKob urCbZYbMr5jdBHQAnS5xpd68zDwO5Y1qIG2VgUTvrixIutBQNpO9hIT9Y4OI8/e6KgRtondal f6CQqvlWaZseG/Yf9uzfhrsxz+ffptMbUGWln+TC400oUUbrvt0mlKSPlgvefdRPvcEWQbr7o cyKc4350SBkbOSOIeDvuxBfAX9cjV+lBlyKt3pHzYqY+fIxNezq72ixZA6xlnPnLiNlH/vHs Received-SPF: pass client-ip=212.227.15.18; envelope-from=boruch_baum@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/06 04:34:54 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:258798 Archived-At: On 2020-11-06 10:05, Eli Zaretskii wrote: > > Date: Fri, 6 Nov 2020 02:54:57 -0500 > > From: Boruch Baum > > > > Katsumi Yamaoka at the emacs-w3m project points out that emacs has a > > function `eww-decode-url-file-name' that solves this issue. Maybe that > > function should become the canonical emacs solution? > > eww-decode-url-file-name solves a slightly different problem: URLs we > find in Web pages. There, the encoding is predominantly UTF-8, so we > mainly use that, and fall back to other possibilities as backup. > > 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. =2D- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0