Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2004-06-18 05:14:29 +0400
committerAtsushi Eno <atsushieno@gmail.com>2004-06-18 05:14:29 +0400
commit72fd119cf8be8ec64526a4b45c100a6898b07968 (patch)
tree3556367e762afd2287d25ad973ed333eb7bbec81 /mcs/class/System.XML/Mono.Xml.Xsl.Operations
parentdd26fb65db6e184929fa7f957c1773b707d298c4 (diff)
2004-06-18 Atsushi Enomoto <atsushi@ximian.com>
* XslNumber.cs : Globalization. Removed unused code. svn path=/trunk/mcs/; revision=29824
Diffstat (limited to 'mcs/class/System.XML/Mono.Xml.Xsl.Operations')
-rw-r--r--mcs/class/System.XML/Mono.Xml.Xsl.Operations/ChangeLog4
-rw-r--r--mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslNumber.cs7
2 files changed, 8 insertions, 3 deletions
diff --git a/mcs/class/System.XML/Mono.Xml.Xsl.Operations/ChangeLog b/mcs/class/System.XML/Mono.Xml.Xsl.Operations/ChangeLog
index f605a446871..8c21bd36d59 100644
--- a/mcs/class/System.XML/Mono.Xml.Xsl.Operations/ChangeLog
+++ b/mcs/class/System.XML/Mono.Xml.Xsl.Operations/ChangeLog
@@ -1,3 +1,7 @@
+2004-06-18 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XslNumber.cs : Globalization. Removed unused code.
+
2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
* XslCopyOf.cs : When evaluation result was result tree fragment (i.e.
diff --git a/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslNumber.cs b/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslNumber.cs
index 24d69b841b5..54343cf24fe 100644
--- a/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslNumber.cs
+++ b/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslNumber.cs
@@ -11,6 +11,7 @@
using System;
using System.Collections;
+using System.Globalization;
using System.Xml;
using System.Xml.XPath;
using System.Xml.Xsl;
@@ -101,7 +102,7 @@ namespace Mono.Xml.Xsl.Operations {
groupingSeparatorChar = this.groupingSeparator.Evaluate (p) [0];
if (this.groupingSize != null)
- groupingSize = int.Parse (this.groupingSize.Evaluate (p));
+ groupingSize = int.Parse (this.groupingSize.Evaluate (p), CultureInfo.InvariantCulture);
return new XslNumberFormatter (formatStr, lang, letterValue, groupingSeparatorChar, groupingSize);
}
@@ -435,13 +436,13 @@ namespace Mono.Xml.Xsl.Operations {
}
class DigitItem : FormatItem {
- System.Globalization.NumberFormatInfo nfi;
+ NumberFormatInfo nfi;
int decimalSectionLength;
StringBuilder numberBuilder;
public DigitItem (string sep, int len, char gpSep, int gpSize) : base (sep)
{
- nfi = new System.Globalization.NumberFormatInfo ();
+ nfi = new NumberFormatInfo ();
nfi.NumberDecimalDigits = 0;
if (gpSep != '\0' && gpSize > 0) {
// ignored if either of them doesn't exist.