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 21:21:18 +0300 Message-ID: <83bkqidxwh.fsf@gnu.org> References: <825yh1b5si.fsf@gmail.com> <87czb61xv1.fsf@gnu.org> <82k056r7zw.fsf@gmail.com> <87fsfuee22.fsf@gmail.com> <87tu4agtq0.fsf@gnus.org> <83czaydzue.fsf@gnu.org> <87pmeygrtx.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40192"; 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 20:37:24 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 1oiK84-000AGT-GJ for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 20:37:24 +0200 Original-Received: from localhost ([::1]:36266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiK83-0002ll-F5 for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 14:37:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiJsV-0000DA-BS for emacs-devel@gnu.org; Tue, 11 Oct 2022 14:21:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiJsU-00040S-QO; Tue, 11 Oct 2022 14:21:19 -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=9GbalQvzypAdDAOmXVZNXC1+2MeUGVmBVexc2pn13UU=; b=kl+DLjDYlkBK T1cRX+ZhHqb941qY/8ATuVbwgwcTHW+rg2awAO1HbvdSocrtzZurVxr3x1F7F6fS/wGtS5nmyE7WT Nmte81kUG5S0Z9s4AgMNjPbZtXVwfx2D2scSeRAg/9htrNOEAkXYwHusyxrPi6WQfXTENcASS57mX /lEZ7su0QSWxZKGYoH2hP9T275WVYGW8bpiUz2abJrRjBS2F1svWzh0czfus9W3+HRoAoMdg3NVfE YafiAlTklinjsJnzKU3hokgxcQrXvfDrtn9fzSyXpaopQ/FfZ32yr3e4UCromHmOCglRzgpCDCobA 3njKyHUQOZv2UqdZNckadQ==; Original-Received: from [87.69.77.57] (port=1427 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 1oiJsL-0001Ev-SP; Tue, 11 Oct 2022 14:21:14 -0400 In-Reply-To: <87pmeygrtx.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 11 Oct 2022 20:04:10 +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:297521 Archived-At: > From: Lars Ingebrigtsen > Cc: arstoffel@gmail.com, pquessev@gmail.com, emacs-devel@gnu.org > Date: Tue, 11 Oct 2022 20:04:10 +0200 > > Eli Zaretskii writes: > > >> 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 > > Ah, right. In any case, the result from url-parse is correct, as far as > I can see -- otherwise you won't be getting back the original URL with > > (url-recreate-url (url-generic-parse-url "file:///C:/some/file")) > => "file:///C:/some/file" > > which should (usually) be the case. It could mean another bug, in url-recreate-url.