I'm having this problem again.
I start the repl with nrepl-jack-in.  Also starting it on the command line 
with 'lein repl' shows the same problem.

What is causing the JVM to lose the default locale settings (at least in 
regard to number formatting)?

Thanks.

On Sunday, March 10, 2013 12:39:57 AM UTC, dabd wrote:
>
> On my system I have:
>
> > *clojure-version*
> {:major 1, :minor 4, :incremental 0, :qualifier nil}
>
> > (java.util.Locale/getDefault)
> #<Locale en_US>
>
>
> > (format "%.1f" 0.5)
> "0,5"
>
> > (java.lang.String/format (java.util.Locale/getDefault) "%.1f" (to-array 
> [0.5]))
> "0.5"
>
> but 
>
> > (java.lang.String/format  "%.1f" (to-array [0.5]))
> "0,5"
>
> How can I set clojure.core/format to display numbers with a dot decimal 
> separator?
> Why calling java.lang.String/format with the default locale returns a 
> different value than calling it without specifying the locale (javadoc says 
> it uses the default locale so they should return the same value)?
>
> Thanks.
>
>
>

-- 
-- 
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/groups/opt_out.


Reply via email to