[Mono-devel-list] Newline Constants Incorrect in Microsoft.VisualBasic
jabouzane at hotmail.com
Fri Jul 16 21:46:17 EDT 2004
I noticed this a while ago (before the errors were posted on the status
page), and this still hasn't been fixed, so I thought I'd write a patch.
The VB carriage return and linefeed characters are reversed in all the
constants in the Microsoft.VisualBasic namespace in the Constants.cs and
ControlChars.cs files. I've included a patch to fix this problem.
Furthermore, it looks like BinaryVBFile and InputVBFile both use "\r" to
check for newline without looking for "\n", and when it encounters a
"\r" at the end of a line, it doesn't check for a "\n" after it, so the
"\n" will remain in the stream, and the code will probably be broken on
Any comments on this are welcome,
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Mono-devel-list