Bug 11366 - Cambodian CompareInfo appears to be broken
Summary: Cambodian CompareInfo appears to be broken
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2013-03-22 18:34 UTC by Jon Skeet
Modified: 2013-03-22 18:34 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Console test app (689 bytes, text/plain)
2013-03-22 18:34 UTC, Jon Skeet

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 11366 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Jon Skeet 2013-03-22 18:34:32 UTC
Created attachment 3683 [details]
Console test app

Description of Problem:

I'm far from an expert on this area, but it's definitely somewhere that Mono is behaving differently to .NET...

Steps to reproduce the problem:

Run the attached program, which finds months 2 and 6 in the Cambodian culture, dumps their UTF-16 code points to the console, and compares them in a case-insensitive way using the Cambodian CompareInfo.

Actual Results:

U+1780 U+17bb U+1798 U+17d2 U+1797 U+17c8
U+1798 U+17b7 U+1790 U+17bb U+1793 U+17b6

Expected Results:

U+1780 U+17bb U+1798 U+17d2 U+1797 U+17c8
U+1798 U+17b7 U+1790 U+17bb U+1793 U+17b6

How often does this happen? Every time.

Additional Information:

Mono version: 3.0.6