Gentlemen: I believe I have seen a part of the reason why X/KDE crashes
under the Japanese locale. I'll put my findings below our previous emails
to the list.
On Saturday 23 February 2002 14:02, David BAUDENS wrote:
On Saturday 23 February 2002 04:39, you wrote:
Platform: 8.2 beta3, updated to cooker at 8pm central time from
sunet.
Use /usr/sbin/localedrake to change the language to Japanese-EUC or
Japanese-UTF-8.
Log out and back in again.
Start KDE with xinit /usr/bin/startkde -- :0 and bingo - crash.
I selected English as the primary language during install, Japanese,
Icelandic and German as secondary languages. I also installed kinput2
and FreeWnn from cooker so that I could possibly type in some
Japanese!
I put straces up at
http://www.cs.wisc.edu/~narfi/xinit.en_US.out
http://www.cs.wisc.edu/~narfi/xinit.ja.EUC.out
http://www.cs.wisc.edu/~narfi/xinit.ja.UTF-8.out
Maybe they well you something more than they tell me!
The first strace there only for reference. Of course KDE did not
crash with the locale set to en_US.
Don't hesitate to ask if you have any further questions/comments.
.xsession-errors please.
Thanks for the report.
Instead of starting KDE with
xinit /usr/bin/startkde -- :0, I copied /usr/bin/startkde to ~/startkde
and added strace-calls all over the place and started KDE as:
xinit ~/startkde -- :0
This made me go through realizing and trying the following:
1) Crash occurred right after reading /usr/X11R6/lib/X11/locale/compose.dir
and a brief inspection of that file showed that the lines for Japanese
were commented out. I uncommented them.
2) On the next startup, KDE crashed right after not finding
/usr/X11R6/lib/X11/locale/ja/Compose. That file only contains comments in
8.1, so I just copied it from my 8.1 partition to my cooker partition.
3) On the next startup, KDE crashes right after reading
/usr/X11R6/lib/X11/locale/locale.alias
4) Now, if I issue the following commands on the console, right before
invoking xinit, I can avoid the crash in 3):
/bin/rm ~/.i18n
unset XIM XMODIFIERS LANGUAGE ENC XIM_PROGRAM
unset LC_MESSAGES LC_TIME LC_NUMERIC LC_CTYPE LC_MONETARY LC_COLLATE
export LC_ALL=ja
export LANG=ja
xinit ~/startkde -- :0
Then I kde starts and it seems to work. However, if I run the following
commands at the console and then start KDE, it crashes upon invokation at
the same point as in 3):
export XIM=kinput2;
export XMODIFIERS=@im=kinput2;
export XIM_PROGRAM=kinput2
xinit ~/startkde -- :0
As the situation is right now, I find the localization of XFree86 for
Japanese quite suspect and this may put the KDE setup in the clear. That
is of course eventually for you guys to decide.
Best,
Narfi.