[Mono-list] Problems with InvariantCulture on Maemo.
keks-n
keks9n at gmail.com
Sun Apr 10 12:28:25 EDT 2011
One more point.
Console.WriteLine ("Decimal separator {0}",
System.Globalization.CultureInfo.InvariantCulture.NumberFormat.NumberDecimalSeparator);
It prints "."
I've tried to attach debugging symbols and got a stacktrace with line
numbers, but the last of them doesn't match any line of code. So I added
some console output and realized that it fails here:
mcs/class/corlib/System/Double.cs:
b [didx] = 0;
unsafe {
fixed (byte *p = &b [0]){
double retVal;
if (!ParseImpl (p, out retVal)) {
if (!tryParse)
exc =
Int32.GetFormatException (); //this line
return false;
}
if (IsPositiveInfinity(retVal) ||
IsNegativeInfinity(retVal)) {
if (!tryParse)
exc = new
OverflowException ();
return false;
}
result = retVal;
return true;
}
}
I have no idea what is ParseImpl, but it's marked extern, so, I guess that
it's something from native binaries.
--
View this message in context: http://mono.1490590.n4.nabble.com/Problems-with-InvariantCulture-on-Maemo-tp3439657p3440027.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list