[Mono-bugs] [Bug 332553] New: Setting CultureInfo.MonthNames raises an Exception.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 10 09:52:24 EDT 2007


           Summary: Setting CultureInfo.MonthNames   raises an Exception.
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: agallero at netscape.net
         QAContact: mono-bugs at ximian.com
          Found By: ---

Created an attachment (id=177406)
 --> (https://bugzilla.novell.com/attachment.cgi?id=177406)
Small application showing the error.

Description of Problem:
If you try to set the MonthNames array in CultureInfo it raises an Exception.

Steps to reproduce the problem:
Compile the attached application and run it.

Actual Results:
Unhandled Exception: System.ArgumentException: An array with exactly 13
elements is needed
  at System.Globalization.DateTimeFormatInfo.set_RawMonthNames (System.String[]
value) [0x00000]
  at System.Globalization.DateTimeFormatInfo.set_MonthNames (System.String[]
value) [0x00000]
  at TestMonthNames.Main () [0x00000]
Expected Results:
no error.

How often does this happen? 

Additional Information:

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list