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:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2002-09-05 06:35:27 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2002-09-05 06:35:27 +0400
commit8ba95aa556d0fbf3624fba4a16ec809fbe7a7b04 (patch)
tree9dda4182339aab3adb4a3e388080cdefa4f42364 /mcs/class/System.XML
parentf6b277b235b87e67b1e7ae38734646d0a6762bab (diff)
2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* XmlTextWriter.cs: fixed bug #29886. svn path=/trunk/mcs/; revision=7258
Diffstat (limited to 'mcs/class/System.XML')
-rw-r--r--mcs/class/System.XML/System.Xml/ChangeLog4
-rw-r--r--mcs/class/System.XML/System.Xml/XmlTextWriter.cs5
2 files changed, 6 insertions, 3 deletions
diff --git a/mcs/class/System.XML/System.Xml/ChangeLog b/mcs/class/System.XML/System.Xml/ChangeLog
index 3aa3b3a2686..3242f62f1d8 100644
--- a/mcs/class/System.XML/System.Xml/ChangeLog
+++ b/mcs/class/System.XML/System.Xml/ChangeLog
@@ -1,3 +1,7 @@
+2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * XmlTextWriter.cs: fixed bug #29886.
+
2002-08-26 Ravi Pratap <ravi@ximian.com>
diff --git a/mcs/class/System.XML/System.Xml/XmlTextWriter.cs b/mcs/class/System.XML/System.Xml/XmlTextWriter.cs
index c0958b8348d..0ffad5646d2 100644
--- a/mcs/class/System.XML/System.Xml/XmlTextWriter.cs
+++ b/mcs/class/System.XML/System.Xml/XmlTextWriter.cs
@@ -67,10 +67,9 @@ namespace System.Xml
baseStream = w;
}
- public XmlTextWriter (string filename, Encoding encoding) : base ()
+ public XmlTextWriter (string filename, Encoding encoding) :
+ this (new FileStream (filename, FileMode.Create, FileAccess.Write, FileShare.None), encoding)
{
- this.w = new StreamWriter(filename, false, encoding);
- baseStream = ((StreamWriter)w).BaseStream;
}
#endregion