Author Topic: Rc9: X430 Compiled Without Valid Define For Cjk.  (Read 1638 times)

radon88

  • Newbie
  • *
  • Posts: 14
    • View Profile
Rc9: X430 Compiled Without Valid Define For Cjk.
« 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

sa_to_shi

  • Newbie
  • *
  • Posts: 1
    • View Profile
Rc9: X430 Compiled Without Valid Define For Cjk.
« Reply #1 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.

cs_jacky

  • Full Member
  • ***
  • Posts: 143
    • View Profile
    • http://
Rc9: X430 Compiled Without Valid Define For Cjk.
« Reply #2 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.