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@winehq.org Reporter: MyBugzilla@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?