[Mono-bugs] [Bug 338559] New: System.IO.Ports.SerialPort.ReadLine() does not use the right NewLine value

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Nov 2 00:03:00 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=338559

           Summary: System.IO.Ports.SerialPort.ReadLine() does not use the
                    right NewLine value
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: michaelmattess at rauland.com.au
         QAContact: mono-bugs at ximian.com
          Found By: ---


Description of Problem:
The ReadLine () method of the System.IO.Ports.SerialPort class does not use the
value of the NewLine property to detect the end of a line.  
Currently it compares against the ‘\n’ character instead of the new_line
variable.  

Also the MS behavior is that a sequence of characters can be used to define the
end of a line.

Steps to reproduce the problem:
1. Create a SerialPort object.
2. set the NewLine property to “XY”
3.  open the port and call ReadLine ()
4. Send “fooXY” to the serial port from another machine.

Actual Results:
No line will be read as it is waiting for a \n to finish the line.

Expected Results:
The line “foo” should be read.

How often does this happen? 
Always.

Additional Information:


-- 
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