Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG rendered incorrectly in continental Europe #34

Closed
sander opened this issue Feb 25, 2016 · 3 comments
Closed

SVG rendered incorrectly in continental Europe #34

sander opened this issue Feb 25, 2016 · 3 comments

Comments

@sander
Copy link

sander commented Feb 25, 2016

I tried generating the scatter-linear.svg example from thi.ng.geom.viz.core:

schermafbeelding 2016-02-25 om 23 07 35

Apparently, string formatting is locale-dependent, and my locale uses the comma as decimal mark. The SVG file rendered well after doing:

    (import '(java.util Locale))
    (Locale/setDefault (Locale. "en" "US"))
@postspectacular
Copy link
Member

Wow! This really is news to me, but will switch to injecting Locale.US in the formatting calls so that you don't need to globally override the Locale.

Thanks - good spot! :)

@postspectacular
Copy link
Member

Fixed for next release. It should already work now if you include this dependency in your project.clj:

[thi.ng/strf "0.2.2"]

This will override the older (0.2.1) version of that lib referred to by geom...

@sander
Copy link
Author

sander commented Mar 1, 2016

Thanks, works indeed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants