[Mono-bugs] [Bug 666515] New: Double Parse and TryParse ignores regional settings under Mono

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jan 24 03:18:36 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=666515

https://bugzilla.novell.com/show_bug.cgi?id=666515#c0


           Summary: Double Parse and TryParse ignores regional settings
                    under Mono
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.8.x
          Platform: Other
        OS/Version: Windows 7
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: coolman9999 at mail.ru
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User
           Blocker: Yes


Description of Problem:

Double methods Parse and TryParse ignores current system culture (regional
settings) under Mono 2.8.1 and works fine under Microsoft.Net

Steps to reproduce the problem:
1. Example code
..
string strVal = "5,00";

double result = double.Parse(strVal);
..
2. Run it under Mono and .Net


Actual Results:
Under .Net result == 5,00
Under Mono result == 500

Expected Results:
Under .Net result == 5,00
Under Mono result == 5,00

How often does this happen? 
Everytime.

Additional Information:

Windows 7 64 bit 
Regional settings - Russian
Decimal separator - ,

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