2017-01-01 17:16 GMT+01:00 Matching Socks <phill.w...@gmail.com>:

> I would expect keywordized namespaces and URIs to agree about equality.
> But alpha2's keywordization makes significant the case of %xx hex notation,
> which in URIs is not significant.
>
> user> (let [u1 "http://org.draintheaquifers/%4f";
>             u2 "http://org.draintheaquifers/%4F";]
>   [(.equals (java.net.URI. u1)
>             (java.net.URI. u2))
>    (= (clojure.data.xml.jvm.name/encode-uri u1)
>       (clojure.data.xml.jvm.name/encode-uri u2))])
>
> yields
>
> [true false]
>

Conformance to java.net.URI is a non-goal, as that only implements a subset
of https://tools.ietf.org/html/rfc3986#section-6 and also, we target not
only the JVM.
Some examples, where java.net.URI produces false negatives:

s://a/%4F = s://a/O
s://a/./b = s://a/b
http://a:80/b = http://a/b

Our current strategy is already acceptable as per ยง6.2.1 of RFC3986

Some amount of normalization might still be desirable and you're welcome to
create a ticket for that. However for it to be actionable, we need a clear
scope as well as an idea about the performance impact it entails.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to