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

Fix localization issue with floating-point deserialization from string #7811

Merged
merged 1 commit into from Jul 11, 2023

Conversation

flobernd
Copy link
Member

Fixes deserialization of "floating-point strings" on machines with German localization:

 FAIL  Tests.Serialization.SourceSerializationForNumericPropertiesTests.DoubleAsString_DeserializesCorrectly
       Expected deserialized.Double to be 1.0, but found 10.0.
..........................................................................
 FAIL  Tests.Common.Fields.FieldValueTests.CanSerialize_DoubleFieldValueKind
       Expected result.FieldValue.ToString() to be "1.1", but "1,1" differs near ",1" (index 1).

@flobernd flobernd added bug 8.x Relates to 8.x client version labels Jul 11, 2023
Copy link
Contributor

@stevejgordon stevejgordon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@flobernd flobernd merged commit fba4348 into main Jul 11, 2023
34 checks passed
@flobernd flobernd deleted the fix-fp-localization branch July 11, 2023 14:00
flobernd added a commit that referenced this pull request Jul 11, 2023
flobernd added a commit that referenced this pull request Jul 11, 2023
flobernd added a commit that referenced this pull request Jul 11, 2023
flobernd added a commit that referenced this pull request Jul 11, 2023
flobernd added a commit that referenced this pull request Jul 11, 2023
flobernd added a commit that referenced this pull request Jul 11, 2023
flobernd added a commit that referenced this pull request Jul 11, 2023
flobernd added a commit that referenced this pull request Jul 11, 2023
flobernd added a commit that referenced this pull request Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.x Relates to 8.x client version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants