Skip to content

StringComparer not working as expected on Linux #20599

@ChristophB125

Description

@ChristophB125

The following test works on Windows but not on Linux (RHEL 7.2 or Ubuntu 16.04):

Assert.AreEqual(0, StringComparer.CurrentCultureIgnoreCase.Compare("ss", "ß"));

Our Microsoft consultant Ben Gimblett has confirmed it and requested that we raise it as an issue here for follow-up.

We understand that .Net Core uses Windows's own comparison service, which is not available on Linux operating systems. How would one perform these culture aware operations on .Net core - irrespective of operating system?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions