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

X locales function on non-x86 platform



嗨!各位好, 加入這個mailing list 甚少發言,實在不好意思,
不知各位可有在 x86 以外平台設定中文 X 的經驗?

我目前的平台是 StrongARM, 一模一樣的設定在 x86 pc 上
可以顯示中文, 但在 ARM 上面卻無法顯示, 有些字顯示的
出來, 大多卻不行.

使用 X remote display, 做對照實驗, 結果如下
X client        X Server
x86     ------> ARM          正常
ARM     ------> x86          不行

因此研判, 問題應該是出在 Xlib, 其 locale text
function 的部份, 不知是否有常見的 unportable bug,
現在這兩種 CPU 比較大的差別在 -- x86 char type 是 signed,
ARM char type 是 unsigned, 另外 ARM 的 data align 是
4 byte, 問題是出在這嗎? 我也不確定, 我試著去 trace
XLib drawText 系列 function, 不過, 真的是好複雜....

在此列出我的設定環境, 希望各位幫忙看看

Hardware:
        Robel NetWinder(Intel SA110)
        Compaq iPAQ(Intel SA1110)
X:
        Server: XFree86 4.0.2 Tiny X
                XFree86 3.3.6

        XLib  : XFree86 4.0.2
                XFree86 3.3.6

測試程式:
        自己寫的小程式,
        標準 x client, 沒有用到任何 toolkit,
        呼叫 XmbDrawImageString 輸出字串.


-- 
// Tim Wu <timwu@debian.linux.org.tw>



Reply to: