Re: [Cooker] XFree86 localization KDE crash (was: Re: KDE crashes in current cooker)

2002-02-28 Thread H. Narfi Stefansson


On Wednesday 27 February 2002 19:11, Pixel wrote:
 H. Narfi Stefansson [EMAIL PROTECTED] writes:
  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.

 this may help:

 
 --=-=-=
 Name: xinitrc  Relocations: (not
 relocateable) Version : 2.4.4 Vendor:
 MandrakeSoft Release : 60mdk Build Date: Wed
 Feb 27 17:34:09 2002 --=-=-=

Unfortunately it does not solve this last crash right after reading
/usr/X11R6/lib/X11/locale/locale.dir (1) and 
/usr/X11R6/lib/X11/locale/locale.alias (2)
if I remember correctly.
Anyway, I think it's better for me to test other things until somebody 
else has looked at the Japanese setup in XFree86 and either confirmed or 
denied that it is suspect. 
To recall, I made changes to 
/usr/X11R6/lib/X11/locale/Compose.dir (3) and 
/usr/X11R6/lib/X11/locale/ja/Compose (4)
and was thereby able to get KDE running under Japanese locale, as long as 
the XIM* variables are unset. If they are set, KDE still crashes right 
after reading (1) and (2). 
More exactly: nspulginscan crashes after reading (1) and (2) and then 
ksmserver crashes after reading (1) and (2) and xinit halts. straces from 
yesterdays cooker are available if anybody is interested.

Feel free to ask if you need any more info,

Narfi.




[Cooker] XFree86 localization KDE crash (was: Re: KDE crashes in current cooker)

2002-02-27 Thread H. Narfi Stefansson

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.




Re: [Cooker] XFree86 localization KDE crash (was: Re: KDE crashes in current cooker)

2002-02-27 Thread Pixel

H. Narfi Stefansson [EMAIL PROTECTED] writes:

 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.

this may help:


--=-=-=
Name: xinitrc  Relocations: (not relocateable)
Version : 2.4.4 Vendor: MandrakeSoft
Release : 60mdk Build Date: Wed Feb 27 17:34:09 2002
--=-=-=

* Wed Feb 27 2002 Pixel [EMAIL PROTECTED] 2.4.4-60mdk

- removed delay before loading xim; new XFree86 doesn't like it


the solution is to remove the sleep 5 done before launching kinput2.