[Mono-list] StreamWriter EOL bug in 0.16

J. Perkins jason@379.com
14 Oct 2002 12:36:02 -0400


I didn't see this in bugzilla, but wanted to confirm the problem before
I logged the bug. StreamWrite.WriteLine() seems to be adding spurious
garbage and the beginning and end of lines now. This wasn't a problem in
0.15. The bit of code below will reproduce the problem.

 ---- 

using System;
using System.IO;

namespace MonoBugs
{
	class Example
	{
		public static void Main()
		{
			StreamWriter sw = new StreamWriter("example.txt");
			sw.WriteLine("Line 1");
			sw.WriteLine("Line 2");
			sw.Close();
		}
	}
}

 ----

Viewed in vi, it ends up like this:

   Line 1<feff>
   <feff>Line2<feff>

This is from the Mono 0.16 RPM, tried on RH7.3 and RH8.0. Again, I
didn't see this problem in 0.15. I am unable to build from sources
(automake errors, always) to see if the problem exists in the very
latest code.

Jason
379