Bug 13570 - Mono throws exception trying to read CultureInfo when region is zh-TW
Summary: Mono throws exception trying to read CultureInfo when region is zh-TW
Status: RESOLVED DUPLICATE of bug 13509
Alias: None
Product: Runtime
Classification: Mono
Component: General (show other bugs)
Version: unspecified
Hardware: PC Mac OS
: --- critical
Target Milestone: ---
Assignee: Mikayla Hutchinson [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2013-07-29 13:12 UTC by PJ
Modified: 2013-07-29 13:38 UTC (History)
2 users (show)

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


Attachments

Description PJ 2013-07-29 13:12:36 UTC
Steps to reproduce:

1) System Preferences -> Region -> Chinese (Taiwan)
2) csharp -e System.Globalization.CurrentCulture.CurrentCulture

Expected result:

zh-TW

Actual result:

unknown>:0 
  at System.Globalization.CultureInfo.CreateTextInfo (Boolean readOnly) [0x00000] in <filename unknown>:0 
  at System.Globalization.CultureInfo.get_TextInfo () [0x00000] in <filename unknown>:0 
  at Mono.Globalization.Unicode.SimpleCollator..ctor (System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  at System.Globalization.CompareInfo..ctor (System.Globalization.CultureInfo ci) [0x00000] in <filename unknown>:0 
  at System.Globalization.CultureInfo.get_CompareInfo () [0x00000] in <filename unknown>:0 
  at System.String.EndsWith (System.String value, StringComparison comparisonType) [0x00000] in <filename unknown>:0 
  at System.Globalization.CultureInfo.get_Parent () [0x00000] in <filename unknown>:0 
  at System.Globalization.TextInfo..ctor (System.Globalization.CultureInfo ci, Int32 lcid, System.Void* data, Boolean read_only) [0x00000] in <filename unknown>:0 
  at System.Globalization.CultureInfo.CreateTextInfo (Boolean readOnly) [0x00000] in <filename unknown>:0 
  at System.Globalization.CultureInfo.get_TextInfo () [0x00000] in <filename unknown>:0 
  at Mono.Globalization.Unicode.SimpleCollator..ctor (System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  at System.Globalization.CompareInfo..ctor (System.Globalization.CultureInfo ci) [0x00000] in <filename unknown>:0 
  at System.Globalization.CultureInfo.get_CompareInfo () [0x00000] in <filename unknown>:0 
  at System.String.EndsWith (System.String value, StringComparison comparisonType) [0x00000] in <filename unknown>:0 
  at System.Globalization.CultureInfo.get_Parent () [0x00000] in <filename unknown>:0 
  at System.Globalization.TextInfo..ctor (System.Globalization.CultureInfo ci, Int32 lcid, System.Void* data, Boolean read_only) [0x00000] in <filename unknown>:0 

This is a regression in Mono 3.x, reported environment is:

Mono 3.2.1 675bb0f

This breaks everything for anyone with region set to zh-TW, so fairly critical.


I believe mhutch has already identified a patch with a fix, assigning to him.
Comment 1 Mikayla Hutchinson [MSFT] 2013-07-29 13:38:26 UTC

*** This bug has been marked as a duplicate of bug 13509 ***

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