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

Make int/float parsing locale aware #178

Merged
merged 3 commits into from
Feb 26, 2018
Merged

Conversation

pfarrel
Copy link
Contributor

@pfarrel pfarrel commented Feb 26, 2018

Currently, the int and float filters always parse with the system default locale. This doesn't make much sense, when jinjava is otherwise locale aware. Instead this PR use a NumberFormat based on JinjavaConfig::getLocale.

This could definitely cause a change in behaviour for users who have been using a non-default locale, if that locale has different number formatting rules.

What's protocol here for a version number bump @jboulter ?

@boulter
Copy link
Contributor

boulter commented Feb 26, 2018

Looks good. I think it makes sense to do a minor version bump.

@pfarrel pfarrel merged commit 14629a9 into master Feb 26, 2018
@pfarrel pfarrel deleted the locale-aware-number-parse branch February 26, 2018 18:03
@anthmatic
Copy link
Contributor

RE: #184 , is this breaking change expected?

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

Successfully merging this pull request may close these issues.

3 participants