Linus Kendall <[EMAIL PROTECTED]> wrote:
>
> I've got bbkeys mappings to open my favorite programs, but I've got a
> problem with international characters in the shell based programs that I
> open through bbkeys. The international characters (���) simply won't work if I
> open mutt through bbkeys (in this way : x-terminal-emulator -name mutt
> -T mutt -e mutt), doing the same thing from a console will result in the
> international chars working. I am thinking that this is due to the
> environment that bbkeys puts the program in, that perhaps that
> environment isn't set up the same as the console I would open manually.
> (perhaps .bashrc/.zshrc isn't run properly? Have any of you got
> a slick solution (I know I could use some form of wrapper or load the
> .zshrc through bbkeys)?
I believe if you call the terminal as a login-shell, it would work.
The following works for me:
+------- in ~/.bashrc ------------------
| LANG="en_US"
| LANGUAGE="en_US"
| LC_ALL="en_US"
| LC_CTYPE="en_US"
|
| export LANG LANGUAGE LC_ALL LC_CTYPE
|
+---------------------------------------
+------ in ~/.bbkeysrc -----------------
|
| KeyToGrab(m), WithModifier(Mod1), WithAction(ExecCommand), \
| DoThis(xterm -bg black -fg wheat -ls -T E-Mail -e mutt)
|
+---------------------------------------
Check with your terminal-emulator's man-page - in general "-ls" makes
the terminal execute your ~/.whatevershellrc
-Jan
--
Jan Schaumann
http://www.netmeister.org