[Mono-bugs] [Bug 593951] New: RichTextxBox RTF Parsing failure: Malformed color entry

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 6 05:10:55 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=593951

http://bugzilla.novell.com/show_bug.cgi?id=593951#c0


           Summary: RichTextxBox RTF Parsing failure: Malformed color
                    entry
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jchampion at zetacentauri.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.2) Gecko/20100115 Firefox/3.6

When generating colored text using a '\colortbl' in a RichTextBox, the
following method works fine on Windows, but fails on MacOSX 10.6.2 with Mono
2.6.1 and 2.6.3.  It also generates the same results on Linux with Mono
2.4.2.3.

See this link for code to reproduce the problem:

http://stackoverflow.com/questions/2534296/rtftextbox-works-on-windows-mono-throws-rtf-parsing-failure-malformed-color-en

The error shown in the terminal is this:

RTF Parsing failure: Malformed color entry
RTF Stream Info: Pos:324 Line:1
TokenClass:Text, Major:8, Minor:0, Param:-10000000, Text:

The RichTextBox remains blank when the error is thrown.  Program does not
crash.

The error appears to be generated in System.Windows.Forms.RTF.ReadColorTbl()

Reproducible: Always

Steps to Reproduce:
1.See sample code at Stackoverflow.com link.
2.Pass in a RichTextBox control and any text to reproduce the error.
Actual Results:  
Rather than populating with colored text, the RichTextBox remains blank.

Expected Results:  
The RichTextBox will show text in one of the colors listed in the color table.

If you would like to run the application that produces this error, you can
download it here:

http://basternae.org/Basternae3Editor_v0.49.zip

To generate the error using this app:
1. run the start.sh file in a terminal window.
2. Click File --> New.
3. Click the next to last icon in the toolstrip, a set of gears that shows the
tooltip "Edit Area Settings".
4. Type anything in the "Area Name" text box.  The terminal will show the
'malformed color entry' errors.

I can provide source code if needed, but the only RTF code that executes is at
the Stack Overflow link above.

-- 
Configure bugmail: http://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