On Sun, Jan 13, 2002 at 10:14:39PM +0100, Vincenzo Colosimo wrote:
> However, there may be obsolete, since i have changed the file 
> blackbox-0.61.1/src/i18n.cc.
> 
> In the line 58 i've changed:
> 
>     locale = setlocale(LC_ALL, "");
> 
> to:  locale = setlocale(LC_ALL, "C");
> 
> After then all fonts are recognized. Maybe this is dump, but i'm not a
> programmer and my computer didn't burst up in flames, so it works for me :-)

Is this local to blackbox, or are you changing the environment?  I went
through considerable grief recently trying to get mutt to handle
internationalization properly, and I wonder if this has something to do
with it.

Despite the fact that my .bashrc explicitly sets:

export LANG="en_US"
export LC_CTYPE="en_US"

I can't get internationalization in mutt unless I explicitly set LC_CTYPE
before calling it.  I had this in the menu:

#               [exec] (mail) {aterm -geometry 100x40 -title "Mail for
#               `whoami`@`hostname`" -e mutt -y}

(unwrapped, of course)

And that doesn't work.  The LC_CTYPE variable is undefined, and all I get
are question marks.  OTOH, if what I do is:

                [exec] (mail) {aterm -geometry 100x40 -title "Mail for
                `whoami`@`hostname`" -e bin/launchmutt}

(again unwrapped, of course)

Where bin/launchmutt is:

$ cat bin/launchmutt
#!/bin/bash
LC_CTYPE=en_US mutt -y

Now I get proper internationalization.

Serious kludge, but I partcipate in enough mailing lists where large
numbers do NOT use ISO8859-1 that it becomes an issue.

-- 
Marc Wilson
[EMAIL PROTECTED]
[EMAIL PROTECTED]

Reply via email to