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: browse-url and URL handlers (MS-Windows) Date: Tue, 11 Oct 2022 20:39:21 +0300 Message-ID: <83czaydzue.fsf@gnu.org> References: <825yh1b5si.fsf@gmail.com> <87czb61xv1.fsf@gnu.org> <82k056r7zw.fsf@gmail.com> <87fsfuee22.fsf@gmail.com> <87tu4agtq0.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="413"; mail-complaints-to="usenet@ciao.gmane.io" Cc: arstoffel@gmail.com, pquessev@gmail.com, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 11 19:42:54 2022 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 1oiJHI-000AS2-Qq for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 19:42:53 +0200 Original-Received: from localhost ([::1]:49112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiJHH-00029v-8w for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 13:42:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiJDn-0008OU-FP for emacs-devel@gnu.org; Tue, 11 Oct 2022 13:39:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiJDm-0005sR-9z; Tue, 11 Oct 2022 13:39:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=lvKaLSpKyQu7wgwL7nKRRgwIK9dIQwbFEFyAn2tr9NA=; b=EMXgrD8wgJGY BmdlIlwNhwFm/82mDktTFQP5UQx3QBwc9lEEBUbVBuXLxjRdmVETnWBBpV40JOFdOCKqsuT7Zkbg9 HqVaMqLc+KIaskBntc98IOJLfhIBdkmuiyyxzDKrt9onI341qPqgwHlkKm2c9qKdzI+v6V4u+IA2e PRtRfCTcSGf0YcTB0PBNKN/Djx7qj2oeFaTLap/7SbILik6cOF2h7x8ga5/dDnh/NNHVFQB9doLuz W1CmDL3wGBrcyxV9Fq57z+PhhMITqS9HvdEyvDr4LZ8vAZFQWRA5CeKvcmBew4oiB6L9RxygKRba0 ko1Usr6lkjl4o3Pa8683Pg==; Original-Received: from [87.69.77.57] (port=2741 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiJDk-0003Re-11; Tue, 11 Oct 2022 13:39:13 -0400 In-Reply-To: <87tu4agtq0.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 11 Oct 2022 19:23:19 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:297513 Archived-At: > From: Lars Ingebrigtsen > Cc: Pascal Quesseveur , emacs-devel@gnu.org > Date: Tue, 11 Oct 2022 19:23:19 +0200 > > Augusto Stoffel writes: > > > I've come across issues with file URLs in Windows before, and the > > problem was that > > > > (url-filename (url-generic-parse-url "file:///C:/some/file")) > > > > returns "/C:/some/file", with an extra slash at the beginning. > > That's the correct result. It is? How so? "/C:/some/file" is an invalid file name on Windows. > The URL should probably be "file://C:/some/file" instead. No, on Windows the file:// URLs have 3 slashes. See https://en.wikipedia.org/wiki/File_URI_scheme#Windows