On Sep 28, 2008, at 3:56 PM, Colin Walters wrote:

> On Sep 28, 1:28 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote:
>
>> final static public Var ERR =
>>                 Var.intern(CLOJURE_NS, Symbol.create("*err*"),
>>                            new PrintWriter(new  
>> OutputStreamWriter(System.err, UTF8),
>> true));
>
> Is it right to put UTF8 there?  For one of my Python programs I went
> to a fair bit of work to support both Chinese Windows and ISO-8859-*
> Linux for output streams.  The latter might be largely ignorable, the
> former probably less so.

Some time ago there was discussion about making UTF-8 the default  
encoding for Clojure I/O and that's now implemented. It's only a  
default though. The code I proposed would establish the root binding  
for the *err* var. Within any thread (including the main thread), it  
could be bound to something else temporarily using clojure/bind or set  
to something else until changed again using the set! special form.

--Steve


--~--~---------~--~----~------------~-------~--~----~
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
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