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 (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-03-22 18:34 UTC by Jon Skeet
Modified: 2013-03-22 18:34 UTC (History)
1 user (show)

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


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

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
0

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
-1

How often does this happen? Every time.

Additional Information:

Mono version: 3.0.6

Note You need to log in before you can comment on or make changes to this bug.