Permalink
Browse files

Need to make *err* a PrintWriter.

  • Loading branch information...
1 parent 53726ef commit e2d09b01b654365800e4ef30a18efb2e3e24529f @technomancy technomancy committed Nov 11, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/leiningen/repl.clj
View
@@ -55,12 +55,13 @@
(let [server# (ServerSocket. ~port 0 (InetAddress/getByName ~host))
acc# (fn [s#]
(let [ins# (.getInputStream s#)
- outs# (.getOutputStream s#)]
+ outs# (.getOutputStream s#)
+ out-writer# (OutputStreamWriter. outs#)]
(doto (Thread.
#(binding [*in* (-> ins# InputStreamReader.
LineNumberingPushbackReader.)
- *out* (OutputStreamWriter. outs#)
- *err* (OutputStreamWriter. outs#)
+ *out* out-writer#
+ *err* (PrintWriter. out-writer#)
*warn-on-reflection*
~(:warn-on-reflection project)]
(clojure.main/repl

0 comments on commit e2d09b0

Please sign in to comment.