From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Ki=C3=AAn_?= =?UTF-8?Q?Nguy=E1=BB=85n?= Quang Newsgroups: gmane.emacs.bugs Subject: bug#54721: 29.0.50; browse-url-file-url fails on Windows since e06319b Date: Tue, 5 Apr 2022 15:57:40 +0900 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000061496a05dbe2c3da" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11280"; mail-complaints-to="usenet@ciao.gmane.io" To: 54721@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 05 08:59:31 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 1nbdA3-0002q7-AF for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Apr 2022 08:59:31 +0200 Original-Received: from localhost ([::1]:46508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbdA1-00067f-U8 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Apr 2022 02:59:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbd8c-00065J-PU for bug-gnu-emacs@gnu.org; Tue, 05 Apr 2022 02:58:13 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nbd8c-0003PM-Gi for bug-gnu-emacs@gnu.org; Tue, 05 Apr 2022 02:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nbd8c-0007d2-F0 for bug-gnu-emacs@gnu.org; Tue, 05 Apr 2022 02:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Ki=C3=AAn_?= =?UTF-8?Q?Nguy=E1=BB=85n?= Quang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Apr 2022 06:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54721 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.164914187929306 (code B ref -1); Tue, 05 Apr 2022 06:58:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Apr 2022 06:57:59 +0000 Original-Received: from localhost ([127.0.0.1]:53654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nbd8Y-0007cc-QW for submit@debbugs.gnu.org; Tue, 05 Apr 2022 02:57:59 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:33992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nbd8X-0007cV-6F for submit@debbugs.gnu.org; Tue, 05 Apr 2022 02:57:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbd8W-00064R-B8 for bug-gnu-emacs@gnu.org; Tue, 05 Apr 2022 02:57:56 -0400 Original-Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:37796) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nbd8U-0003OP-U2 for bug-gnu-emacs@gnu.org; Tue, 05 Apr 2022 02:57:56 -0400 Original-Received: by mail-wm1-x32e.google.com with SMTP id l7-20020a05600c1d0700b0038c99618859so932824wms.2 for ; Mon, 04 Apr 2022 23:57:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=gINjAKmd394XLDrbwRAQhs2KS3uZ2jY/aDDzaDjeFWg=; b=BrjnvX8Shmly+L8GXpdw8AYcYK2LDmFCiKtHdb7eXF5gWNemrKfdfJUjWZGgBJrn53 3Urzo9kl+OGy+fslhfONmr+5xGiHxLAZzkCVN/9GcvltPeEsQLygN5nIqXoRjcNS+jH+ mjPCdKs6WzSxy1/wnO8dkhqIKoCvpNd52/GPYz6XavsiH/tRhX7KfwY9kMExsx5DUBiT cIWTUDePsYpbWByAFqKRCLWUFIruLTCilK/5hQ/kT3QNV5KxXYtOnzXaDbSRc+w9leAE MEtYmSdeR95S/SL9kzY4YHzPDwnd0S6oH9q163hqpM8Lt+9xf+Av9o7eyrrPvAD0euyq Miuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=gINjAKmd394XLDrbwRAQhs2KS3uZ2jY/aDDzaDjeFWg=; b=J09rZKFPu3wy4dLS3Xiqw2F3gA/hx63Ws8bYfepeEEvfKqO60NUhsbM6ON9iICqfFR QtBB2nyW3qv/nOhy0+zpziyRFVTD5dWn/tWxa2W/1TuDPfvIb+gvWFx7teQlAHw8TTlm xQSOnvZ92xhuMz5vkp+qYTbB6OAlI2pzABFnazIVGxZgbqH9Gu17hbq9wbtUGy2gVaGh eIUm6ybt8r76adR6i+GiDqi0qLqQM6FHdLYPATPfmFZYasTOsBcxCuI4d87bbwF2ucpB J2ego8slFjYBDaEVFPkoPw4q4fSYKRAZ9ZmK6zwrFexfqdAZSCiwsiEFaGK7KlrQUKes oG6A== X-Gm-Message-State: AOAM5330jh4QLno4Y+HhFt3GZr7mFEOe27EkNaVM5Rzmc4fZdeQUJway cW2ja0xhpOBxU+yK5Y+4eHDYHAYVWaZJdzasBISP0JovVdEjaQ== X-Google-Smtp-Source: ABdhPJxZ0Mq0ljslNrk4fQKxKPdXHaN3tbv10GLtKD3xAyTfHPMhV2qB/Uvgk6RUkALang79X0XGOudWYvpesNz+jnE= X-Received: by 2002:a05:600c:4a05:b0:38e:6dcf:594f with SMTP id c5-20020a05600c4a0500b0038e6dcf594fmr1672181wmp.195.1649141870576; Mon, 04 Apr 2022 23:57:50 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=kien.n.quang@gmail.com; helo=mail-wm1-x32e.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, HTML_MESSAGE=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-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:229429 Archived-At: --00000000000061496a05dbe2c3da Content-Type: text/plain; charset="UTF-8" Error: *(error "ShellExecute failed: The system cannot find the file specified.")* It's because e06319b is using `file-name-split` which will discard the driver name in Windows. For example: (file-name-split "c:/Data/projects/notes/techs/.burlIU3pav.html") # Output: ("" "Data" "projects" "notes" "techs" ".burlIU3pav.html") Since the driver name is discarded, the constructed URL is "file:///Data/projects/notes/techs/.burlIU3pav.html", which does not exist and cannot be opened. --00000000000061496a05dbe2c3da Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Error:
(error "ShellExecute failed: = The system cannot find the file specified.")

=
It's because=C2=A0e06319b is using `file-name-split` whi= ch will discard the driver name in Windows.
For example:
(file-name-split "c:/Data/projects/notes/techs/.burlIU3pav.html"= ;)
# Output: ("" "Data" "projects" = "notes" "techs" ".burlIU3pav.html")

Since the driver name is discarded, the constructed URL is = "file:///Data/projects/notes/techs/.burlIU3pav.html", which does = not exist=C2=A0and cannot be opened.

=
--00000000000061496a05dbe2c3da--