[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian for ARM710的中文化問題



On Thu, Jan 25, 2001 at 11:34:37PM +0800, shuyong wrote:
> 可能是因為效率問題,XDrawString16假設每個字是緊密排列進行顯示的。
> 你可以想象當sizeof(XChar2b) == 4時的情況。所以我要尋找gcc關于結
> 構對齊的選項。看看我的想法是否正確。
> 

你可以試一試  -mstructure-size-boundary=8
估計不會 work.

不行的話, 試試從新編譯 X. 在 xc/config/cf 下找到你的機器用到
的 config 文件, 在 compiler optins 中加上 "-DMUSTCOPY". 

這樣當 X 需要 copy XChar string 的時候會作:
   new_str[i].byte1 = old_str[i].byte1
   new_str[i].byte2 = old_str[i].byte2
與 XChar 的 size 無關. 如果不定義 "MUSTCOPY"會作:
   memcpy ((char*)new_str, (char*)old_str, len*2)
根據您的描述顯然會出問題了. 說實在的我很奇怪您竟然能畫出中文字來.

regards,
rigel

-- 
| This message was re-posted from debian-chinese-gb@lists.debian.org
| and converted from gb2312 to big5 by an automatic gateway.



Reply to: