Author: krasnov
Date: 2006-09-11 04:10:07 -0400 (Mon, 11 Sep 2006)
New Revision: 65213

Modified:
   trunk/mcs/class/System.Web/System.Web/ChangeLog
   trunk/mcs/class/System.Web/System.Web/HttpWriter.cs
Log:
* HttpWriter.cs: fixed WriteLine to work correctly in utf-16 encoding


Modified: trunk/mcs/class/System.Web/System.Web/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web/ChangeLog     2006-09-10 20:28:14 UTC 
(rev 65212)
+++ trunk/mcs/class/System.Web/System.Web/ChangeLog     2006-09-11 08:10:07 UTC 
(rev 65213)
@@ -1,3 +1,7 @@
+2006-09-11  Vladimir Krasnov  <[EMAIL PROTECTED]>
+
+       * HttpWriter.cs: fixed WriteLine to work correctly in utf-16 encoding
+
 2006-09-08  Robert Jordan  <[EMAIL PROTECTED]>
 
        * TraceData.cs: fixed NRE if `sizes' is null, which may happen

Modified: trunk/mcs/class/System.Web/System.Web/HttpWriter.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/HttpWriter.cs 2006-09-10 20:28:14 UTC 
(rev 65212)
+++ trunk/mcs/class/System.Web/System.Web/HttpWriter.cs 2006-09-11 08:10:07 UTC 
(rev 65213)
@@ -130,16 +130,11 @@
                        response.Flush ();
                }
 
-               static byte [] newline = new byte [2] { 13, 10 };
+               static char [] newline = new char [2] { '\r', '\n' };
                
                public override void WriteLine ()
                {
-                       output_stream.Write (newline, 0, 2);
-                       
-                       if (response.buffer)
-                               return;
-
-                       response.Flush ();
+                       Write (newline, 0, 2);
                }
 
                public void WriteString (string s, int index, int count)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to