From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Re: browse-url and URL handlers (MS-Windows) Date: Tue, 11 Oct 2022 19:43:46 +0200 Message-ID: <87bkqidzn1.fsf@gmail.com> References: <825yh1b5si.fsf@gmail.com> <87czb61xv1.fsf@gnu.org> <82k056r7zw.fsf@gmail.com> <87fsfuee22.fsf@gmail.com> <87tu4agtq0.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="33389"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Pascal Quesseveur , 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:49:28 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 1oiJNg-0008Zz-Bi for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 19:49:28 +0200 Original-Received: from localhost ([::1]:37990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiJNe-0005N2-Vg for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 13:49:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiJIF-0003K0-VC for emacs-devel@gnu.org; Tue, 11 Oct 2022 13:43:52 -0400 Original-Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]:40927) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiJIE-0006i5-5g for emacs-devel@gnu.org; Tue, 11 Oct 2022 13:43:51 -0400 Original-Received: by mail-ed1-x533.google.com with SMTP id r14so6860643edc.7 for ; Tue, 11 Oct 2022 10:43:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=R/BVpdKElvS9XlENGfaC/w3nq03eqqHCl2w8Ash2090=; b=N1bIC6LHyApWudGkLWbuLx8dPvJl1ZfXxf+2t61Ntoc3aWBbDWKTgBymjH/Nl+PbV/ gNUK6Vzlv6pB4l1KhFTcqWXXOaqFVWSYPom4bPf9fatBD4uBXZLEFveB1C1dUZasrTO3 RdXZoErr4c4/aKoOqs4CewXBHp5vHXm31ck2Lgk6jtxtA7IkR1WjISmC6gp8gnbOiJwj lbiNFUu6f1uWgiUq2Q1GxG7ChvqkgIT0kk8cC0eOQNS1gisDl6og23F5uuulvy/+6Zvb Q11eGztAIPTb12j3ZOSVMzuEUI23nfUIkE4hGJXnhDGHfl8HnnMgyaTlFEySRYQQ9Z0s LD0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=R/BVpdKElvS9XlENGfaC/w3nq03eqqHCl2w8Ash2090=; b=UqKM42m6DNAxtLxqXHYkGQmzp6ksledLcuMj1vjM5/TTnWQ290M6oZMvtMGgNam1Yh 2C2NYFXIjxXu2UNlrepaPZMCceSAA2woGB6qOmAvHwZUMLkNgz+D1Tffnnghv/60xIQv 9bxZSirSJJXfzFfiOKQdbv2ekiVMuOIxv5OL94QhMO/gKaRWPAho4GhHbL4OYHKhF5rE YpeOyIAb2cXbIyBImabyIkXhQTafyOuSC5CT9KoZmm0sOERP/be96NY+oXeqK1q9pbbE D7txq8Navvjvv0gcDtLgtBlcRxf+Cz31kPAalqSVVF3gJssMnvxh6lzejywr0pPibTHF XzUg== X-Gm-Message-State: ACrzQf3xe4x3/5P3O/zooKwExRJcrTF0637B51q8Z8cBPbDLMsjbeuu6 qxS4O1qgG+M2/euSioDbZ1r7DJTnkYk= X-Google-Smtp-Source: AMsMyM6jIMBuYapCjIFJBsn3R9jIzvXmk5gD6KmmLIYxdfTy4GzJosCRdUs3f2Rd4/+Rytc5wsPeDw== X-Received: by 2002:a05:6402:1944:b0:457:fed7:5c30 with SMTP id f4-20020a056402194400b00457fed75c30mr23417860edz.278.1665510228262; Tue, 11 Oct 2022 10:43:48 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::89aa]) by smtp.gmail.com with ESMTPSA id k2-20020aa7c042000000b0045c010d0584sm5394813edo.47.2022.10.11.10.43.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 10:43:47 -0700 (PDT) In-Reply-To: <87tu4agtq0.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 11 Oct 2022 19:23:19 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::533; envelope-from=arstoffel@gmail.com; helo=mail-ed1-x533.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 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:297514 Archived-At: On Tue, 11 Oct 2022 at 19:23, Lars Ingebrigtsen wrote: > 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. Perhaps. But then you would be declaring that it's not url.el's business to try and fix these Windows filename issues. > The URL should probably be "file://C:/some/file" instead. No, for this URL (url-host (url-generic-parse-url "file://C:/some/file")) ;;=> c and that's correct. > I.e., everything after the first two slashes is the path on the local > machine. According to Wikipedia the original URL (with three slashes) is correct.