Skip to content

Conversation

@jrdodds
Copy link
Contributor

@jrdodds jrdodds commented Jun 7, 2023

Fixes #8798

Context

Locale differences can produce different results

Changes Made

Change to use overloads of double.TryParse() that accept an IFormatProvider

Testing

ran unit test suite

Notes

@danmoseley
Copy link
Member

Does this need a change wave as it may break builds?

Btw usually it's best to keep large formatting changes in their own PR if possible

@jrdodds
Copy link
Contributor Author

jrdodds commented Jun 7, 2023

The change is also in PR #8710 which is in a change wave.

Btw usually it's best to keep large formatting changes in their own PR if possible

The editor auto-format on save with remove trailing space was enabled and I missed it. The changes are all whitespace at the end of a line. I'll make a commit to undo the whitespace change

@jrdodds
Copy link
Contributor Author

jrdodds commented Jun 8, 2023

The formatting changes have been reverted.

@JanKrivanek
Copy link
Member

Is this fully superseded by #8710?
Let's see if the issue is discovered in additional places, otherwise I'd keep it just in #8710

Other than that - it looks good - just doesn't feel as in need of separate PR

@jrdodds
Copy link
Contributor Author

jrdodds commented Jun 8, 2023

PR #8710 contains all the changes that are in this PR.

@JanKrivanek
Copy link
Member

PR #8710 contains all the changes that are in this PR.

We've now merged #8710, should this one be closed then?

@jrdodds
Copy link
Contributor Author

jrdodds commented Jun 28, 2023

We've now merged #8710, should this one be closed then?

Yes.

@JanKrivanek
Copy link
Member

Thank you @jrdodds

@jrdodds jrdodds deleted the DoubleParseLocale branch June 28, 2023 13:34
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.

[Bug]: Number literals are interpreted differently depending on locale

4 participants