[Bug 46842] New: c# On Wine double.TryParse successfully converts empty string to a double. But double is corrupt.

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Mar 15 10:55:40 CDT 2019


https://bugs.winehq.org/show_bug.cgi?id=46842

            Bug ID: 46842
           Summary: c# On Wine double.TryParse successfully converts empty
                    string to a double. But double is corrupt.
           Product: Wine
           Version: unspecified
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: P2
         Component: -unknown
          Assignee: wine-bugs at winehq.org
          Reporter: MyBugzilla at mailinator.com
      Distribution: ---

I'm a c#/.net developer.

Testing my windows application and modifying source so that it works reliably
on Wine.

Testing on Linux/Mint 19

c# has a function that parses a string and converts, if possible, to a number.

[Code begins]

double d = 0;
string s = "";  // Create an empty string.

if(double.TryParse(s, out d) == true)
   Messagebox.Show( d.ToString() );

[Code end]

The above tryParse should fail, return false, because the string s is empty.
But on Wine it returns true and the double d is now corrupt. It appears to be
empty. The Messagebox displays an empty string.

Any ideas?

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list