bugDotGNU Portable.NET - Bugs: bug #2493, PNet uses "iv" for...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #2493: PNet uses "iv" for invariant culture but .NET uses "" (empty string)

Submitted by:  Marcus Urban <mathpup>
Submitted on:  Fri 07 Feb 2003 09:57:09 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sat 08 Feb 2003 06:49:12 AM UTC, comment #1:

Fix checked into CVS - 8 Feb 2003

Rhys Weatherley <rweather>
Project Administrator
Fri 07 Feb 2003 09:57:09 AM UTC, original submission:

I discovered that PNet uses "iv" to represent the invariant culture, but Rotor and .NET both use "" (empty string), in such places as the CultureInfo constructors.

In the attached test case, Rotor and .NET print

Invariant Language (Invariant Country)

whereas ilrun throws an exception:

Uncaught exception: System.ArgumentException: Invalid culture name or identifier
at System.Private.CultureNameTable.GetNameInfoByName(String, Boolean) in ./System/Private/CultureNameTable.cs:711
at System.Globalization.CultureInfo..ctor(String, Boolean) in ./System/Globalization/CultureInfo.cs:104
at System.Globalization.CultureInfo..ctor(String)
at Testing.Main()

Marcus Urban <mathpup>

 

Attached Files
file #284:  cultureinfo.cs added by mathpup (247B - text/x-csharp - test case)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 08 Feb 2003 06:49:12 AM UTCrweatherStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1