From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: browse-url and URL handlers (MS-Windows) Date: Tue, 11 Oct 2022 20:52:54 +0200 Message-ID: <874jwagpkp.fsf@gnus.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8010"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: arstoffel@gmail.com, pquessev@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 11 20:54:46 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 1oiKOs-0001uh-5F for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 20:54:46 +0200 Original-Received: from localhost ([::1]:33816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiKOq-0003zV-US for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 14:54:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiKNC-0002VL-3C for emacs-devel@gnu.org; Tue, 11 Oct 2022 14:53:02 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:60074) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiKNA-0000Nc-GX; Tue, 11 Oct 2022 14:53:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ekpKqp43dTv9qm0ZlQN2TLVEsLLamr3Z8nGon6x4dho=; b=baoTenhVdKo6sxW7qB0DOGtq/G NnJWFmeoEBHCsbCjSyHhmF79XWLHz5ccUq7TFwjCmm4AcyOsCrbWSVdeIX0eDR9bbXAEWL79Msn1M y9S2EpKtX3QY0GRghfzXWdAf2uJKp0mWrOzTbtI8eEPTXcXMMDgmwNUmAylpWVC4X8xI=; Original-Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiKN4-0007Dr-JI; Tue, 11 Oct 2022 20:52:57 +0200 In-Reply-To: <87pmeygrtx.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 11 Oct 2022 20:04:10 +0200") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEWdVaZIIDK1p7Ks TFzWjmmuOIv///8BKnpWAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+YKCxIyK88WF7AAAAGpSURBVDjL hZNLdsMgDEUFqedWCXPKaeehkAX4hAWYOtr/ViqRj2W3PdXAA671HvoAsAbqgP9BUKD8BbIG1jzP j1WBAOZ3qQhK5/gEURLaU2cFTJrnU2alcmhzBg0PDq9bEKERp1yz32VYaI0QX5M/7qUGWrCdEjpX 60VlBFgampK8eKyAz2FMaM7TWZSSkrLwwredJ8o7AIMAmqQhW2DuIOdSN/MwIODiWWraghl9o4ol ixL2ogPfKt5AkV710cYYQ5R4G3FEn5O7pj2Q/uZJ5nGTCrcJfowyj3xxU58h0D24VzLbpSAruVwV aMaTuLMUlyJgHmYGfIjUnEuZr1DuGTcwI3deEqRfTyDf5smJcwcwq0l5Irb2tLD5doQdnHcAaEnn 1oGYrxGpJr8woC2wwMBRcnkHINiaw4I9oyoQuZ+p94uGooDsyYDj8CswHXiCspEKvFif7SewwR6S 7WAjFW3kxR0f762o/yPXNgtwTgGZPXqUF9o3QN0qBiSMDV0H74/TviohA9sEnRG5bmBn9vDsYFJZ qwDD/fhKrCehPQ4n4wI3BAZ5O98nu3i0kMM+6AAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0xMC0x MVQxODo1MDo0MyswMDowMG2cRNgAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMTAtMTFUMTg6NTA6 NDMrMDA6MDAcwfxkAAAAAElFTkSuQmCC X-Now-Playing: Kid Sister's _Ultra Violet_: "Life on TV" Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:297525 Archived-At: Lars Ingebrigtsen writes: > 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 I was right the first time around: https://datatracker.ietf.org/doc/html/rfc8089 Everything after the first two slashes is the local-part, so the local-part of "file:///C:/some/file" is "/C:/some/file", which the URL library does correctly. But it's up to the local host to interpret the local part, and apparently the conventions on Windows is to do further processing on the "/C:/some/file" part of the URL to end up at "C:/some/file", but that has to be done on a much higher level.