Mailing List Archive


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

Re: [tlug] Funny locale problem with Gentoo



On 水, 2002-09-25 at 02:18, Stuart Luppescu wrote:
> After installing Gentoo, I discovered I couldn't start some apps from
> the command line (e.g. gnumeric, abiword, konqueror, emacs, gnomecc),
> but they would start ok from menus or by clicking on icons (in
> WindowMaker). When I ran them with strace I found that they all
> segfaulted with the same context:
> 
> read(3, "\1\0101\0\r\0\0\0\202\1\0\0\0\0\0\0004\0\0\0\0\0\0\0\1"..., 32)
> = 32
> readv(3, [{"@example.com=ja_JP.SJIS,ja_JP.EUC,ja_"..., 52}, {"", 0}], 2) = 52
> munmap(0x40d8d000, 116192)              = 0
> --- SIGSEGV (Segmentation fault) ---
> 
> To my untrained eye, it looked like it was having trouble loading
> Japanese locales, so I took 
> export XMODIFIERS="@example.com=kinput2"
> out of my .bashrc, and, lo, I could start my apps again! This is not a
> big deal, since I can set XMODIFIERS in wrapper scripts for the apps I
> need Japanese (rather then for the whole session), but doesn't this mean
> there's something missing from my install, or a bug in Gentoo? (I did
> emerge kinput2, as suggested by Scott, and Japanese input works fine in
> evolution, mozilla and emacs.) Anyone (in particular, Scott or Ryan)
> have a clue? 

I have had a similair problem with certain apps refusing to run if I had
XMODIFIERS="@example.com=kinput2" exported, mostly using Scott's langx script. I
needed to change the script to

#!/bin/bash
XMODIFIERS="@example.com=kinput2" LANGUAGE=en_US LANG=ja_JP.eucJP
LC_ALL=ja_JP.eucJP ${1+"$@"} &

LC_TYPE=ja_JP.eucJP just wouldn't work for me in Gentoo, worked fine in
Mandrake, though.

The reason, I think, that it works from menus and not from command line
is that some the menus often don't pick up exported variables. 

Stuart Bouyer
> -- 
> Stuart Luppescu -=- s-luppescu@example.com        
> University of Chicago -=- CCSR 
> $B:MJ8$HCRF`H~$NIc(B -=-    Kernel 2.4.19-xfs-r1                
> Every creature has within him the wild,
>  uncontrollable urge to punt.   -- Snoopy 
>  
> 
-- 

Attachment: signature.asc
Description: This is a digitally signed message part


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links