[Mono-bugs] [Bug 503889] New: International characters displayed incorrectly in window title

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 14 10:12:34 EDT 2009


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


           Summary: International characters displayed incorrectly in
                    window title
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: x86
        OS/Version: Mac
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: alexander.shulgin at yessoftware.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=292201)
 --> (http://bugzilla.novell.com/attachment.cgi?id=292201)
Test file with international characters (Russian, utf-8).

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10)
Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10

International characters are displayed incorrectly in the window title
(Form.Text).

The same string used to initialize control's Text property, e.g. Button, is
displayed correctly.


Reproducible: Always

Steps to Reproduce:
1. Compile and run sample code.

Actual Results:  
The text in the window title is garbled.  Warning about mono trying to use
Roman charset for conversion is shown on console.

Expected Results:  
The text in the window title should be correct.

Sample code:
============

using System;
using System.Windows.Forms;
using System.Xml;

namespace RussianTitle
{
    class MainForm : Form
    {
        internal MainForm()
        {
            XmlDocument xml = new XmlDocument();
            xml.Load("test.xml");

            this.Text = xml.DocumentElement.InnerText;
        }
    }

    class Program
    {
        public static void Main()
        {
            Application.Run(new MainForm());
        }
    }
}

// Compile like this: gmcs Program.cs -out:a.exe -r:System.Windows.Forms
-r:System.Xml

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