Subject: Re: bug#10410: bump: Bug#10410: numbers, ipv6 addresses in uri module

From: Andy Wingo <[email-masked]>
Date: Sat, 07 Jul 2012 11:38:02 +0200

Hi Daniel,

Thanks for testing (& for the original patches :)

On Sat 07 Jul 2012 06:01, Daniel Hartwig <[email-masked]> writes:

> One small nitpick, depending on what uri-host is defined to be
> returning this may or may not differ from spec.:
>
>  host        = IP-literal / IPv4address / reg-name
>
>  IP-literal    = "[" ( IPv6address / IPvFuture  ) "]"
>
> In my intuition, a call to build-uri is naturally of the form:
>
>  (build-uri #:scheme 'http
>             #:host "[2001:db8::1]")

Yeah it is a bit confusing.  I think the thing to do is to consider the
brackets as part of how ip-literals are delimited within a URI, and not
part of the host itself.  Thus it would be Guile's responsibility to add
them or remove them.  But as you say, this goes against the RFC.

At the same time, I'd like to be able to always pass the result of
inet-ntop to build-uri #:host.

The internet is a messy place!

Andy
-- 
http://wingolog.org/