OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: radon88 on February 16, 2005, 02:06:28 am

Title: Rc9: X430 Compiled Without Valid Define For Cjk.
Post by: radon88 on February 16, 2005, 02:06:28 am
Hi,

I'm digging for displaying korean characters in xterm.

I found some weird things in X430 compilation in RC9.

XChar2b in zaurus is  4bytes long not 2bytes.

( see X11/Xlib.h, it's just a struct of 2 unsigned char.

 in x86 systems, it is 2bytes-long).

And compiling X430 without defining MUSTCOPY or MUSTCOPY2B,

 it makes trouble in diplaying non 1byte-characters(CJK or non-european world).)

see (X430SRC)/xc/lib/X11/Text16.c

Code: [Select]
int
XDrawString16
...
{
    ...
#if defined (MUSTCOPY) || defined(MUSTCOPY2B)
       // safe copy code for arm
#else
      // troublesome memcpy
      // it assume that XChar2b is 2bytes-long
      memcpy((char*) ..., (char*)..., 254 * 2);  
#endif
}


I patched my xterm code to work around with current situations.

And it displays korean characters correctly.

But I think it's the problem of compiling Xlibraries and with correct define will solve this problem

without inefficient workaround client patches.

And it should not harm 1byte-world people.(european characters world?)

Please compiling  X430 with defining MUSTCOPY or MUSTCOPY2B in RC10.

Am I wrong?  

PS.

I googled same problem: here (http://xfree86.desiato.de/xfree86/pipermail/xpert/2001-January/005310.html)
Title: Rc9: X430 Compiled Without Valid Define For Cjk.
Post by: sa_to_shi on February 14, 2006, 04:41:42 am
Quote
And compiling X430 without defining MUSTCOPY or MUSTCOPY2B,

 it makes trouble in diplaying non 1byte-characters(CJK or non-european world).)

see (X430SRC)/xc/lib/X11/Text16.c


Please compiling  X430 with defining MUSTCOPY or MUSTCOPY2B in RC10.

Hello guys.
First of all, thanks alot for this marvelous developing job!!

I'm Japanese. And I'm facing same problem on 1.1.0beta1.
I couldn't display Japanese characters correctly.

I also beg you to define above.

Best regards.
Title: Rc9: X430 Compiled Without Valid Define For Cjk.
Post by: cs_jacky on February 15, 2006, 10:54:48 pm
You can use gtk2 terminals such as gtkterm or gnome-terminal. Take a look at this thread https://www.oesf.org/forums/index.php?showtopic=16217 (https://www.oesf.org/forums/index.php?showtopic=16217).