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

Submitted by:  Erik Pfeifle <kirep>
Submitted on:  Wed 09 Jun 2004 01:04:54 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned 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>
Project 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>
Project 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>
Project 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>

 

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

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 8 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 08 Dec 2004 04:22:32 PM UTCt3rmin4t0rStatusNone=>Fixed
  Assigned torweather=>None
  Open/ClosedOpen=>Closed
Tue 07 Dec 2004 05:01:34 PM UTCdarkdustAttached File-=>Added XSharpUnicode.patch, #1953
Sat 18 Sep 2004 05:44:44 PM UTCNoneAttached File-=>Added UmlautTest.cs, #1680
Thu 10 Jun 2004 12:12:36 PM UTCRich333Assigned toRich333=>rweather
Thu 10 Jun 2004 09:14:05 AM UTCnbAssigned toNone=>Rich333
Wed 09 Jun 2004 01:04:54 PM UTCkirepAttached File-=>Added TestGermanUmlaut.zip, #1384

Back to the top


Powered by Savane 3.1-cleanup1