It seems like 1.7 changed how default Locales are read from the host:
http://stackoverflow.com/questions/7107972/java-7-default-locale
http://blog.ej-technologies.com/2011/12/default-locale-changes-in-java-7.html
On Sunday, March 17, 2013 10:40:19 PM UTC, dabd wrote:
>
> 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 [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
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.