guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug#10410: guile: uri module confused by domain names starting with


From: Daniel Hartwig
Subject: Re: bug#10410: guile: uri module confused by domain names starting with numbers, ipv6 addresses
Date: Sat, 31 Dec 2011 00:27:53 +0800

On 30 December 2011 18:14, Daniel Hartwig <address@hidden> wrote:
>
> `string->uri' requires similar changes to support the ipv6 address
> literals.  I'm yet to found a very elegant way to do this though it is
> easy enough to simply butcher `authority-pat'.

So the issue was really with `parse-authority'.

The attached patch cleans this up with support for IPv6 (including
dotted-quad notation), fixes some typos in the tests, and adds new
tests.

With both patches applied the web-uri.test now passes for all tests
and I can finally do:

scheme@(guile-user)> (string->uri "http://[::ffff:192.0.2.1]/foo";)
$2 = #<<uri> scheme: http userinfo: #f host: "[::ffff:192.0.2.1]"
port: #f path: "/foo" query: #f fragment: #f>
scheme@(guile-user)> (string->uri "http://123.com";)
$3 = #<<uri> scheme: http userinfo: #f host: "123.com" port: #f path:
"" query: #f fragment: #f>

Attachment: 0002-enhance-IPv6-support.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]