On 30 December 2011 18:14, Daniel Hartwig 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 = #< 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 = #< scheme: http userinfo: #f host: "123.com" port: #f path: "" query: #f fragment: #f>