Here is a diff of fix http://pastebin.com/KE6U3Pqb

On Nov 23, 12:13 am, Michael Jaaka <[email protected]>
wrote:
> Well, it is easy to break tests on any system. All you need to do is to put
> space into file name path.
> For example in clojure <https://github.com/clojure/clojure> / 
> test<https://github.com/clojure/clojure/tree/master/test>/
> clojure <https://github.com/clojure/clojure/tree/master/test/clojure> /
> test_clojure<https://github.com/clojure/clojure/tree/master/test/clojure/test_clojure>/
> java<https://github.com/clojure/clojure/tree/master/test/clojure/test_cloj...>/
>  io.clj
> Change
>
> (defn temp-file
>   [prefix suffix]
>   (doto (File/createTempFile prefix suffix)
>     (.deleteOnExit)))
>
> to
>
> (defn temp-file
>   [prefix suffix]
>   (doto (File/createTempFile (str "a b c" prefix) suffix)
>     (.deleteOnExit)))
>
> The solution is to use java.net.URLDecoder/decode everywhere where .getPath 
> is called in java/io.clj
>
> and change protocol for URI like below
>
> (extend-protocol Coercions
>
>   URI
>   (as-url [u] (URL. (java.net.URLDecoder/decode (.toString u))))
>   (as-file [u] (as-file (as-url u))))

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to