From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#65685: 29.1; Inconsistent behavior of quoted file name "/:~" across platforms Date: Sat, 14 Oct 2023 18:48:16 +0200 Message-ID: <877cnpnoa7.fsf@gmx.de> References: <156539f1-a26e-848b-16b9-8c12ea46f321@gmail.com> <8734yshrx9.fsf@gmx.de> <143e9622-960b-0841-db3f-d79b021eedb2@gmail.com> <87a5smvbsk.fsf@gmx.de> <83il79sl9a.fsf@gnu.org> <87bkd1eam0.fsf@gmx.de> <83ttqtqwdl.fsf@gnu.org> <87jzrpnup1.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16107"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: jporterbugs@gmail.com, 65685@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 14 18:48:58 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qrhow-0003wn-0k for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Oct 2023 18:48:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrhod-000239-E0; Sat, 14 Oct 2023 12:48:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrhoc-000230-9Y for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 12:48:38 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrhoc-0000uo-1B for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 12:48:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qrhoz-0001yu-MI for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 12:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Oct 2023 16:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65685 X-GNU-PR-Package: emacs Original-Received: via spool by 65685-submit@debbugs.gnu.org id=B65685.16973021347565 (code B ref 65685); Sat, 14 Oct 2023 16:49:01 +0000 Original-Received: (at 65685) by debbugs.gnu.org; 14 Oct 2023 16:48:54 +0000 Original-Received: from localhost ([127.0.0.1]:50287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrhor-0001xu-Fy for submit@debbugs.gnu.org; Sat, 14 Oct 2023 12:48:53 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:57407) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrhom-0001wa-19 for 65685@debbugs.gnu.org; Sat, 14 Oct 2023 12:48:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1697302097; x=1697906897; i=michael.albinus@gmx.de; bh=wnvaswuALlStYDNU0o/sBwf9JQBctIvXjPQjYiXarXQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=R4kFKLQfacYohLPA2t0AjlODAmEWZsns1mmlUiYqyOg6i8EgrzwwgOxMerDBVUjVObftGR1bOa9 zZB+SmD7aLO5KMfErIS1WjRVxdBT1pHYA6Tndk4J0v7jFGx4pFmt/T8+hd+u5bSaT5Oi50b6cPffM U76nXV/MUfGpKMSn1dC+oBEKHPjqQJbXIOXt/YBW/B1296WHeZY9wAtrnuOLHziZ6R1XneA4DooNk NTEtj5NAa3kGU+JCGlWM7+MJEVSu2f6lTV/mFQnQ/RGgoFfhPOByMIQPCb7LQt8ADmPbRlajuqol6 yyjLU8ev88J3G/BJq/GwO0yHPk4ncAjh5P2A== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.30]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mxm3Q-1rl47L0tbC-00zHWt; Sat, 14 Oct 2023 18:48:17 +0200 In-Reply-To: <87jzrpnup1.fsf@gmx.de> (Michael Albinus's message of "Sat, 14 Oct 2023 16:29:46 +0200") X-Provags-ID: V03:K1:I1O1hsQB2VR7aKlCrHQEAZHT7OBM3dCrDM0vBnFnvZfSEBdO4B3 1rVI0bqoxue4pRQXQlLbnK0rFGIcjK2Pi6WdKMkXyyjI9icFa/oNSsmBxl1FZOJdBf4J1Yw izhDkXDt69WgbKMPD3aOF5BU3ryGbntAwH4QbyiBg1G+/xpibx3PIJV7ar7lSmhsP7l1dOD zSWQvtetbVN3WCNz0t2vg== UI-OutboundReport: notjunk:1;M01:P0:8Q8ougrgH6Q=;nMit9Qsjoxnwqjh4A9TlCT14NEx 5QsFj5V8T6H6Y8jP2tjfEMUWy55WbqucMcwxfHy/MYYtwDjKx9Op8tScdO6+ktQeH2I3LHSpB tjDc8kLY0qAsyL5TSrhpeqbIH3u44hU64WbRkeS1GA54FHnkwanZSZSIdgl4ZVEzeTOZocEPV 5S/c1SN2x0hYQdoJ6vhjcHO/gRSuwt/ABU8NJt5HO5GtlVjJSN0GV51ia1guJ5HoefV5qaS/y YxXfrpzm9mtdjzb/8+Nxc9b/51lk5XPzqdIV9dGMcPoPpPaHxHssNzevcK8cPyK6Dw83KvBXK 5nU9LP/yw45Sd2QWtn1+D40e8jqrVp4T1/9KDBgxzo/NEgSnXiYgY32cV6Tax+qflPSe0gDEi JH2wVxUxNk0e3FbtrDz7qLd9IXM9cZEviwSkPZR3UE8U4Om+UKVbCuv03NIWmgSM+3HbOdqaN 0FkYWKpRQY+wFID711YGUk8tfeg92b9yfAhwuUOhQ38FGK0VzphtaHFY8SROb1upoMFEdli8S /J6wgviyB0OYa7ZCTVKeBYJ6l9yGWeb3ipXPE/hnCvL0HqKrjL0PfByzb1QzVT8ENLeo+Hd1e TayQVhdK9uQS47MBPFXsPMVxUILynOseTo33deR9xBGZGR+O9HnDUEsJszN9BeVtHnt5+vag/ t8S163j1vFJosugJSWrI38dIoxcpANvwNLP8hKSHUNg469hpUsKfl3mD5I98tLMMfwPc7nik2 3G88WMcNdDjPss5edJaavYL9NVktPhwoMOnxepueB1fTwCPRcBEvcx9008XQ62MgnTFoU2L6 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272443 Archived-At: --=-=-= Content-Type: text/plain Michael Albinus writes: Hi Eli, >> The only difference I could think of is that the directory Emacs uses >> here has whitespace in its name (see my original report), whereas on >> Windows 10 it probably doesn't. > > FTR, if I use a directory with spaces in its name, it fails for me as > well. I'm now debugging ... It looks, like it is a problem in the test case code itself. abbreviate-file-name does not work as I expect in this combination. Well, since it isn't needed for the test, the appended patch has fixed it for me. Would you like to check? Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el index 8f6495a293c..07e1be015da 100644 --- a/test/lisp/files-tests.el +++ b/test/lisp/files-tests.el @@ -668,12 +668,14 @@ files-tests-file-name-non-special-expand-file-name-tilde abbreviated-home-dir) (files-tests--with-temp-non-special (tmpfile nospecial) (let (file-name-handler-alist) - (setq nospecial (file-name-quote (abbreviate-file-name tmpfile)))) + (setq nospecial + (file-name-quote (concat "~/" (file-name-nondirectory tmpfile))))) (should (equal (expand-file-name nospecial) (expand-file-name (file-name-unquote nospecial t))))) (files-tests--with-temp-non-special-and-file-name-handler (tmpfile nospecial) (let (file-name-handler-alist) - (setq nospecial (file-name-quote (abbreviate-file-name tmpfile)))) + (setq nospecial + (file-name-quote (concat "~/" (file-name-nondirectory tmpfile))))) (should-not (equal (expand-file-name nospecial) ;; The file name handler deletes the ".special" extension. --=-=-=--