+2008-09-24 Marek Habersack <mhabersack@novell.com>
+
+ * Double.cs: check whether decimal_separator, group_separator and
+ currency_symbol strings aren't empty before trying to index them
+ in Parse ().
+
2008-09-24 Jb Evain <jbevain@novell.com>
* AppDomain.cs (CreateDomain): call the domain initializer in
if (c == 'e' || c == 'E')
goto case State_Decimal;
- if (decimal_separator != null &&
+ if (decimal_separator_len > 0 &&
decimal_separator [0] == c) {
if (String.CompareOrdinal (s, sidx, decimal_separator, 0, decimal_separator_len) == 0) {
b [didx++] = (byte) '.';
break;
}
}
- if (group_separator != null &&
+ if (group_separator_len > 0 &&
group_separator [0] == c){
if (s.Substring (sidx, group_separator_len) ==
group_separator){
break;
}
}
- if (currency_symbol != null &&
+ if (currency_symbol_len > 0 &&
currency_symbol [0] == c){
if (s.Substring (sidx, currency_symbol_len) ==
currency_symbol){