From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ivo Tadeu Newsgroups: gmane.emacs.bugs Subject: bug#55429: 27.1; browse-url-of-dired-file fails to open file with '#' character Date: Sun, 15 May 2022 10:33:46 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29666"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 To: 55429@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 15 17:32:29 2022 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 1nqGEP-0007VU-GH for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 May 2022 17:32:29 +0200 Original-Received: from localhost ([::1]:52244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqGEN-000314-2G for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 May 2022 11:32:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqGDy-00030l-Bk for bug-gnu-emacs@gnu.org; Sun, 15 May 2022 11:32:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56556) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nqGDy-0002h5-2m for bug-gnu-emacs@gnu.org; Sun, 15 May 2022 11:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nqGDx-0008CI-WF for bug-gnu-emacs@gnu.org; Sun, 15 May 2022 11:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivo Tadeu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 May 2022 15:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55429 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.165262867131451 (code B ref -1); Sun, 15 May 2022 15:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 May 2022 15:31:11 +0000 Original-Received: from localhost ([127.0.0.1]:50453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqGD6-0008BA-TM for submit@debbugs.gnu.org; Sun, 15 May 2022 11:31:11 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:47308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqENc-0002bf-Pt for submit@debbugs.gnu.org; Sun, 15 May 2022 09:33:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqENc-0001tm-J8 for bug-gnu-emacs@gnu.org; Sun, 15 May 2022 09:33:52 -0400 Original-Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]:46821) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nqENb-0001Is-06 for bug-gnu-emacs@gnu.org; Sun, 15 May 2022 09:33:52 -0400 Original-Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-d39f741ba0so16508083fac.13 for ; Sun, 15 May 2022 06:33:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:to:subject:content-language :from:content-transfer-encoding; bh=IM11QdfwZF8E1uOZA38N75Jis+wDy19nnYAXffKEiKk=; b=RZw7WMpjLx2gSyTlbYAwgS39ysK2ha9EwUcsTMQRfAsVvMgtfOfi/sLn7UJyxECFZi nl7AbuBNuNHaJVMuru27w7YzTWWkO+p8CA6c49Fo7tkgsvewLsCoC1yUENIdIrLurERi KEgHpu28GaHVJhqum3ZnrlJ/wa5FFXbuDk4itWHUH4/v90sgwVFJsVTFVCd1lA860AZJ rELu2NQYHh/cDkKwd/gR8K5X/tMdLubS1MVsvhKQaznRK1Fp4tkoop00ZlfyWgcE3HD5 h7u6CLotiR7nrO0aS8DKawQONLvyw8+g8cVaZFggX0PatRXMcuHo8SEWwIa1B/Lxt03O pfww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:to :subject:content-language:from:content-transfer-encoding; bh=IM11QdfwZF8E1uOZA38N75Jis+wDy19nnYAXffKEiKk=; b=Fmp6vNpVC98NRN5apTAaXxhvBEVn9yf0COFGyVpg0wPbI4QjVyWiO0L16qrxbSND9t pOgmVg2AwQ2Qg3sTeTlxoGctPg745//S+mVlfvgmwqZT1O3MCd38zdMrbrcVL+n6TWW9 6rhm/GeKV+xKXcN5F81k7etSSASYtsgfA99AwgsBVBG2XRmgmr6nJWsix0ju65Ubr0Y/ mgDMEOXHvw/m3o+q4L1Ve/R0GcpgrK59j2ywNur+goXzxnTtfERVM4M2guzIkP4Ox+Ku AT4oDS1pj8a4N3kR30d8k29F1RCh5Judqk7rsVtFcbMacsohM/w0M/3+YP6xpmYaxPo1 SG4g== X-Gm-Message-State: AOAM531QbCI8M2H95bpBrtDPEuNTwDQJ1JiShqSqv/PGC2Y7f0Tpfbqm 1Od3JHyWZqzG2jr/5mHpIc1ibHJP2m8= X-Google-Smtp-Source: ABdhPJzE5+33syEmqt13upkfZLrOQG7yIqa4B3aL+hQwWy9nSLiKVIfZIDxqwZwFSUuCPyxsbu35ZA== X-Received: by 2002:a05:6870:2491:b0:e9:e30:cf80 with SMTP id s17-20020a056870249100b000e90e30cf80mr12035698oaq.44.1652621629230; Sun, 15 May 2022 06:33:49 -0700 (PDT) Original-Received: from ?IPV6:2804:14c:5bd8:8b36:8666:9eab:a274:514? ([2804:14c:5bd8:8b36:8666:9eab:a274:514]) by smtp.gmail.com with ESMTPSA id eh24-20020a056870f59800b000f193bc7b79sm817657oab.44.2022.05.15.06.33.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 15 May 2022 06:33:48 -0700 (PDT) Content-Language: en-US Received-SPF: pass client-ip=2001:4860:4864:20::36; envelope-from=ivotade@gmail.com; helo=mail-oa1-x36.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 15 May 2022 11:31:08 -0400 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" Xref: news.gmane.io gmane.emacs.bugs:232326 Archived-At: When you use W in a dired buffer to open a file with the '#' character, the file doesn't get opened. In my limited testing, the problem appears to be in the function `browse-url-file-url': (browse-url-file-url "/home/ivo/tmp/file with spaces.txt") => "file:///home/ivo/tmp/file%20with%20spaces.txt" (browse-url-file-url "/home/ivo/tmp/file with #.txt") => "file:///home/ivo/tmp/file%20with%20#.txt" When I use xdg-open directly with these urls, the second one will fail. It appears that the '#' should also be percent-encoded. Tested with emacs -Q In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-03-27, modified by Debian built on x86-conova-01 Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye)