More complete :
(def *locale* nil)
(binding [clojure.core/format
(fn [fmt & args]
(String/format (or *locale*
(java.util.Locale/getDefault))
fmt (to-array args)))
*out* *err*
*locale* java.util.Locale/FRANCE]
(printf "%-10.4f\n" Math/PI)
(flush))
May be some marco would be useful :
(with-out *err*
(with-locale "fr"
(printf "%-10.4f\n" Math/PI)
(flush)))
In spirit of with-out-str.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---