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

Order type fields by oridnal to keep the same order on multiple platforms #236

Merged
merged 2 commits into from
Jul 8, 2021

Conversation

object
Copy link
Contributor

@object object commented Jul 8, 2021

This PR fixes akkadotnet/akka.net#5102.

The error is caused by differences in order of letters and special characters on different platforms.

This blog posts has more details of such differences and suggests using StringComparer.Ordinal.

Copy link
Contributor

@Arkatufus Arkatufus left a comment

Choose a reason for hiding this comment

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

LGTM

@Arkatufus
Copy link
Contributor

As a note, this might still fail on systems that uses different cultures and codes that uses unicode characters for field names. Will need to investigate further by adding more comprehensive tests.

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.

InvalidCastException in mixed-host cluster
3 participants