[Mono-bugs] [Bug 81598][Min] New - Problem with different newlines and multi-line TextBox controls overlapping text

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri May 11 10:41:12 EDT 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by dan.maser at inin.com.


--- shadow/81598	2007-05-11 10:41:11.000000000 -0400
+++ shadow/81598.tmp.29800	2007-05-11 10:41:11.000000000 -0400
@@ -0,0 +1,58 @@
+Bug#: 81598
+Product: Mono: Class Libraries
+Version: 1.2
+OS: RHEL 2.1
+OS Details: RHEL WS 4, kernel 2.6.9-42 on i686 
+Status: NEW   
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: Dan.Maser at inin.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Problem with different newlines and multi-line TextBox controls overlapping text
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+If you mix occurrences of "\r\n" and "\n" in a string supplied to a 
+multiline TextBox control the result isn't usable.  It ends up with text 
+overlayed on other text so it looks like gibberish.  I think there are 
+two ways to solve this: the 'wrong' newline could be drawn as a 
+usual 'square box' (really the default unknown char for the current font) 
+or maybe better yet just allow newlines to be either "\n" or "\r\n" and 
+maybe "\r" too.
+Steps to reproduce the problem:
+1. Make a multi-line textbox and set the text to "Line one\nLine 
+2. run the app.
+Actual Results:
+On windows the result is:
+    Line one{square-box}Line Two
+    LineThree{square-box}LineFour{square-box}{square-box}LineFive
+On mono/linux the result is:
+    Line one
+    Line Two    /* Note that 'Line Two' and 'LineThree' overlap each
+    LineThree      other in the linux/mono display!! */
+    LineFour
+    LineFive
+Expected Results:
+  Either the result does the similar thing to windows where other-OS-
+newlines show up as square boxes, or they are handled properly and the 
+text does not overlap.
+How often does this happen? 
+  Every time
+Additional Information:
+  I'm using the latest svn head revision of the code from May 10, 2007.

More information about the mono-bugs mailing list