[Mono-bugs] [Bug 445326] New: StreamReader.ReadLine fails to stop reading at a new line
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Nov 14 16:49:52 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=445326
Summary: StreamReader.ReadLine fails to stop reading at a new
line
Product: Mono: Class Libraries
Version: 2.0
Platform: x86-64
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: david at ritter.demon.co.uk
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=252407)
--> (https://bugzilla.novell.com/attachment.cgi?id=252407)
test app (vs2008 sln)
While testing some of my code with the file at
http://alohatown.com/genealogy/Fergie.GED (not attaching as it isn't my file,
just one I came across via searching for test data) I noticed that
StreamReader.ReadLine wasn't working correctly.
The file in question uses \r.
Under my setup (using 2.0 packages from
http://ppa.launchpad.net/firerabbit/ubuntu) when I run a test program the first
6882 lines seem to read ok, the next line however doesn't, it seems to start
eating up the \r and so reads multiple lines at once. The problem does not
seem to occur under .net 3.5 on a win2k8 vm.
I've attached the crude code I am using as a test case which is just a loop
reading lines and outputting the line number until an unexpected long line is
reached. It expects to find the file from the mentioned url in the same dir as
the exe.
If I convert all the \r to \r\n then the StreamReader works fine.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list