On Sat, Jun 03, 2000 at 11:11:18PM -0500, Alex Lane wrote:
> I know this seems to get hashed every couple of weeks (days), but I
> guess it's my turn to ask for help.

... been there, done that:-)

> I've finally gotten my Linux box to behave in terms of loading the
> appropriate font and keyboard driver. If I 'more' a mail file containing
> koi8-r messages, I see the Cyrillic. Once I start mutt, viewing the same
> messages shows a bunch of '?' characters.

Yeap...

> My locale:
> 
> LANG=koi8-r
> LC_CTYPE="koi8-r"
> LC_NUMERIC="koi8-r"
> LC_TIME="koi8-r"
> LC_COLLATE="koi8-r"
> LC_MONETARY="koi8-r"
> LC_MESSAGES="koi8-r"
> LC_ALL=

Here's what you should do:

1) in your muttrc say "charset=koi8-r" (if you compiled with
--enable-locales-fix, this will solve the problem right away and you don't have
to read further. If not, keep reading); 

2) type this command "export LC_CTYPE=ru_SU.KOI8-R" (this is the most important one if 
you didn't use --enable-locales-fix. All the other LC_x will affect other not 
important stuff like the date language and the language of the interface messages.);

3) restart your mutt and you should see some good, old Russian.

I'll tell you more - if you put this in your muttrc, you'll be able to read
windows 1251 too! The line is:

charset-hook windows-1251 CP1251

The above will work provided the content-type in the header of incoming
messages is "windows-1251". But since you can specify a regular expression, you
can work around it somehow (so far I've seen windows-1251 and "cyr"-something). 

Enjoy,
        Sergei (ςοσσιρ)

Reply via email to