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 ECD5E1F461 for ; Sat, 18 May 2019 15:21:07 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 7D80612099E; Sun, 19 May 2019 00:21:03 +0900 (JST) Received: from o1678916x28.outbound-mail.sendgrid.net (o1678916x28.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id D3F4A12099E for ; Sun, 19 May 2019 00:20:59 +0900 (JST) Received: by filter0015p3iad2.sendgrid.net with SMTP id filter0015p3iad2-28126-5CE022DD-16 2019-05-18 15:21:01.333244537 +0000 UTC m=+232910.802464392 Received: from herokuapp.com (unknown [54.167.227.248]) by ismtpd0037p1iad2.sendgrid.net (SG) with ESMTP id hBuFXvlIR-Sxzf8JKhKWdw for ; Sat, 18 May 2019 15:21:01.468 +0000 (UTC) Date: Sat, 18 May 2019 15:21:01 +0000 (UTC) From: deivid.rodriguez@riseup.net Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 68195 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?klzXTY0v3jOvaMSihdVenmzxCeXPrK4t1AV7GwiE8TiD0a+qIpHtk4x0DgXVZ8?= =?us-ascii?Q?OtR51j31Wu6mdoyznBFYvjQIfHjj=2F=2F59LYQjZoM?= =?us-ascii?Q?3VV=2FzSFfyt7+vmyzHInDmHtdGFrEmR0RdVKbfKl?= =?us-ascii?Q?DfF9+9q++Y9ed+7b+epTo9AEF3y=2FuEwGQe3hHh6?= =?us-ascii?Q?2IC0eEn4Lc2dDwPIcj3ae1BveXbXq+dsntQ=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 92711 Subject: [ruby-core:92711] [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 reported by deivid (David Rodr=EDguez). ---------------------------------------- Feature #15861: Correctly parse `file:c:/path/to/file` URIs https://bugs.ruby-lang.org/issues/15861 * 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: