OpenSolaris

Printable Version Enter a New Search
Bug ID 6728611
Synopsis xterm does not work on the ja and ja_JP.PCK locales
State 11-Closed:Duplicate (Closed)
Category:Subcategory xserver:i18n
Keywords
Responsible Engineer Wei Xue
Reported Against
Duplicate Of 6824625
Introduced In
Commit to Fix
Fixed In
Release Fixed
Related Bugs 6823517 , 6824625
Submit Date 22-July-2008
Last Update Date 7-April-2009
Description
On snv_94, xterm does not work on the ja locale as the following:
% locale
LANG=ja
LC_CTYPE="ja"
LC_NUMERIC="ja"
LC_TIME="ja"
LC_COLLATE="ja"
LC_MONETARY="ja"
LC_MESSAGES=ja
LC_ALL=
% /usr/openwin/bin/xterm
Failed to open input method

And on the ja_JP.PCK locale, it causes a core dump as the following:
% locale
LANG=ja_JP.PCK
LC_CTYPE="ja_JP.PCK"
LC_NUMERIC="ja_JP.PCK"
LC_TIME="ja_JP.PCK"
LC_COLLATE="ja_JP.PCK"
LC_MONETARY="ja_JP.PCK"
LC_MESSAGES="ja_JP.PCK"
LC_ALL=
% /usr/openwin/bin/xterm
The local IM state map is empty.  Compose file may be broken.
Failed to create input context
(and Japanese message telling Segmentaion Fault - core dumped)

The stack trace of the core is as the following:
% pstack core
core 'core' of 1395:    xterm
 084397f0 ???????? (843a8f0, 80a7144, 804591c, 0)
 0806f668 xim_real_init (80459e0, d0bbbd81, 84072f0, 0, 0, 843a8f0) + 234
 0806f3b8 xim_instantiate_cb (84072f0, 0, 0) + 24
 d0bbbd81 _XimRegisterIMInstantiateCallback (841de88, 84072f0, 0, 0, 0, 806f394) + 1f5
 d103fc02 _XDynamicRegisterIMInstantiateCallback (841de88, 84072f0, 0, 0, 0, 806f394) + 286
 d1026713 XRegisterIMInstantiateCallback (84072f0, 0, 0, 0, 806f394, 0) + 3b
 0806f093 VTRealize (8429488, 8046354, 80462e4) + 61f
 d114be19 RealizeWidget (8429488) + 111
 d114c01f RealizeWidget (84197c0) + 317
 d114c21e XtRealizeWidget (84197c0) + ee
 0806cff7 VTInit   (80ab2e1, 0, 842958c, 0, 0, 0) + 17
 0807fb1c spawnXTerm (8429488) + 34c
 0807ef29 main     (0, 8047198, 80471a0) + 1515
 0805d492 _start   (1, 80472d8, 0, 80472de, 8047320, 8047339) + 7a
Work Around
Please use locale ja_JP.UTF-8 to lauch xterm. I will integrate the root cause late.
export XMODIFIERS=@im=iiimx
then run: xterm +lc
Comments
N/A