From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 2BD491F461 for ; Sat, 18 May 2019 16:02:21 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 2149D120AC1; Sun, 19 May 2019 01:02:15 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id B96A9120998 for ; Sun, 19 May 2019 01:02:12 +0900 (JST) Received: by filter0068p3iad2.sendgrid.net with SMTP id filter0068p3iad2-18994-5CE02C85-19 2019-05-18 16:02:13.23387716 +0000 UTC m=+235351.035163951 Received: from herokuapp.com (unknown [54.167.227.248]) by ismtpd0003p1iad1.sendgrid.net (SG) with ESMTP id nNKNZIbfSX2S9qKaH4vrFw for ; Sat, 18 May 2019 16:02:13.169 +0000 (UTC) Date: Sat, 18 May 2019 16:02:13 +0000 (UTC) From: deivid.rodriguez@riseup.net Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 68197 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 15861 X-Redmine-Issue-Author: deivid X-Redmine-Sender: deivid X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: =?us-ascii?Q?klzXTY0v3jOvaMSihdVenmzxCeXPrK4t1AV7GwiE8TiBs2aI=2FkNiZAwrTXOVsx?= =?us-ascii?Q?bq1VK+rnDB76=2FtT+QDcuzWadM81gXyIZx1eQUBE?= =?us-ascii?Q?RdFan7Jkn1HJz2=2FsTTb2Vdlk4MZlNZaUMNKjsF2?= =?us-ascii?Q?WBF5iBR+VRj72jyG9yn6e0H=2FR2sNoC3tD2bnZY0?= =?us-ascii?Q?f7eYBb4DAia+3+paNhiKBVpltMjrbxZ6=2FZg=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 92713 Subject: [ruby-core:92713] [Ruby trunk Feature#15861] Correctly parse `file:c:/path/to/file` URIs X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #15861 has been updated by deivid (David Rodr=EDguez). Yep, that's correct. The alternative is to use the alternative form, but as you point out, the p= receding slash is certainly inconvenient. Anyways, thanks for considering this. ---------------------------------------- Feature #15861: Correctly parse `file:c:/path/to/file` URIs https://bugs.ruby-lang.org/issues/15861#change-78071 * Author: deivid (David Rodr=EDguez) * Status: Open * Priority: Normal * Assignee: = * Target version: = ---------------------------------------- Recently ruby has getting better at parsing URIs using the "file" scheme, w= ith the addition of "URI::File". Still, some Windows edge cases are not imp= lemented, and it would be nice to have them. For example, while the [addres= sable gem](https://github.com/sporkmonger/addressable) can correct parse "f= ile:c:/path/to/file", the builtin library is not that smart yet: ``` = irb(main):001:0> URI.parse("file:c:/path/to/file").path =3D> nil irb(main):002:0> require 'addressable' =3D> true irb(main):003:0> Addressable::URI.parse("file:c:/path/to/file").path =3D> "c:/path/to/file" ``` I think this would be a matter of implementing https://tools.ietf.org/html/= rfc8089#appendix-E.2, which is not normative but it would be certainly nice= to have. -- = https://bugs.ruby-lang.org/ Unsubscribe: