bugDotGNU Portable.NET - Bugs: bug #9266, German umlauts and german sz are...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9266: German umlauts and german sz are not displayed

Submitter:  Erik Pfeifle <kirep>
Submitted:  Wed 09 Jun 2004 01:04:54 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Wed 08 Dec 2004 04:22:32 PM UTC, comment #4: 

The patch fixes this bug as far as I am able to confirm.

Kinda fitting that a .de guy fixes a german render issue .

Gopal.V <t3rmin4t0r>
Group administrator
Tue 07 Dec 2004 05:01:33 PM UTC, comment #3: 

The attached patch adds (I think complete) Unicode support for Xsharp and Xft. This fixes the Umlaut and sz problem when Xft support is enabled.

The patch converts strings into wide char strings (32 bit characters) using mbsrtowcs, which seems to be part of the C89 and UNIX98 / Single UNIX Specifications and thus should be avaible on all Unices. A quick google says it is also avaible on Mac OS X (being a BSD) and Windows / Visual Studio 6, so this should be pretty portable.

I think we could fix the Umlaut problem as well using the iconv call (also part of the libc like mbsrtowcs). We can't use mbsrtowcs here because standard Xlib XDrawFont is only avaible in an 8bit and a 16bit version. But it would be a bit more complicated as the non-Xft methods in Xsharp are more complicated.

Marc Haisenko <darkdust>
Group Member
Sat 18 Sep 2004 05:44:44 PM UTC, comment #2: 

Compiling "UmlautTest.cs" with the following command:
"cscc -winforms -g -o UmlautTest.exe UmlautTest.cs"
All umlauts are displayed correct.

If the file is compiled with the following csc syntax:
"cscc /out:UmlautTest.exe /debug /r:System.Drawing.dll,System.Windows.Forms.dll UmlautTest.cs",
other characters are displayed for the umlauts.

The test file is in utf-8 encoding, local encoding is also
utf-8.

Anonymous
Thu 10 Jun 2004 12:12:36 PM UTC, comment #1: 

It looks to me like this is hitting a TODO in XsharpSupport.c in the TryCreateFont function.

Richard Baumann <Rich333>
Group Member
Wed 09 Jun 2004 01:04:54 PM UTC, original submission:  

german umlauts and german sz are not displayed in pnet 0.6.6.

In MS .NET the test exe (TestGermanUmlaut.exe) produces a correct display of all umlauts and the german sz, see Screenshot_CorrectDisplayGermanUmlaut.jpg.
In pnet the same exe only displays the texts without all umlauts, see Screenshot_WrongDisplayGermanUmlaut.jpg.

When compiling the source file (TestGermanUmlaut.cs) with pnet's cscc, it seams like the compiler removes the umlauts, because there are the following warnings : invalid UTF-8 sequence,..., see Compile_TestGermanUmlaut.txt.
This it not true, because when setting the locale LC_CTYPE=de_DE@euro the german umlauts are correctly displayed in pnet.

I think it is a bug if for displaying unicode text the appropriate locale must be set.

Erik Pfeifle <kirep>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #2181:  XSharpUnicode.patch added by darkdust (3KiB - text/x-diff - Patch for Xsharp Unicode support when using Xft)
file #1776:  UmlautTest.cs added by None (396B - text/x-c++src)
file #1392:  TestGermanUmlaut.zip added by kirep (14KiB - application/x-zip-compressed - source file, executable, compiler setting and output, screenshots)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 8 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-12-08 t3rmin4t0r StatusNone Fixed
    Assigned torweather None
    Open/ClosedOpen Closed
2004-12-07 darkdust Attached File- Added XSharpUnicode.patch, #1953
2004-09-18 None Attached File- Added UmlautTest.cs, #1680
2004-06-10 Rich333 Assigned toRich333 rweather
2004-06-10 nb Assigned toNone Rich333
2004-06-09 kirep Attached File- Added TestGermanUmlaut.zip, #1384

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code