Bug 37848

Summary: CultureInfo.GetCultureInfo(0) should throw ArgumentOutOfRangeException instead of CultureNotFoundException
Product: [Mono] Class Libraries Reporter: Sandy Armstrong [MSFT] <sandy>
Component: mscorlibAssignee: Bugzilla <bugzilla>
Status: RESOLVED FIXED    
Severity: normal CC: mono-bugs+mono
Priority: ---    
Version: 4.2.0 (C6)   
Target Milestone: Untriaged   
Hardware: PC   
OS: All   
Tags: Is this bug a regression?: ---
Last known good build:

Description Sandy Armstrong [MSFT] 2016-01-20 18:37:30 UTC
CultureInfo.GetCultureInfo(0)


In Mono:

CultureNotFoundException: Culture ID 0 is not a supported culture


In .NET:

ArgumentOutOfRangeException: Positive number required. Parameter name: culture.
Comment 1 Sandy Armstrong [MSFT] 2016-01-20 18:43:11 UTC
https://github.com/mono/mono/pull/2470
Comment 2 Sandy Armstrong [MSFT] 2016-01-21 03:49:24 UTC
Moved PR to https://github.com/mono/mono/pull/2475
Comment 3 Sandy Armstrong [MSFT] 2016-01-21 14:11:10 UTC
Fixed in https://github.com/mono/mono/commit/2c4cb3db15ded4aa530ea3573136fe381d13166e