On 2011-05-18, Derek Martin <[email protected]> wrote:
> On Wed, May 18, 2011 at 04:33:49PM +0000, Grant Edwards wrote:
>> > The last problem I've encountered is that in the past, some systems
>> > were still defaulting to non-UTF-8 charsets, and even if you set your
>> > LANG properly your X session was started with a non-unicode
>> > environment.
>> 
>> That could be it.  I don't have LANG set to an UTF locale when I
>> start X.  Every time I've tried to enable UTF support
>> across-the-board, I've run into so many problems that I switched
>> back.  Mutt is the only program where I've run into any need for UTF,
>> so I set LANG to a UTF locale before starting the terminals in which
>> I run mutt.
>
> Hmm...  It sounds like you're already doing this, but what fixed it
> for me (before I got around to fixing the default locale) was to set
> my locale in my shell, then from that shell start a new xterm with
> -u8 (specify unicode mode, no longer needed) and then run mutt (or
> whatever) from that new terminal.  If that's what you're doing,

Indeed it is.  I run mutt using a shellscript that sets LANG and then
runs a terminal:

  #!/bin/bash
  export LANG=en_US.utf8
  exec urxvt -T "mutt $1" -n "mutt $1" -ls -e mutt -F .muttrc.$1

> and it still doesn't work, I'm at a bit of a loss...

All the UTF tests I've run in mutt's terminal all seem to work fine.

  perl -CO -le 'print "\x{d4}"'

Shows uppercase O-circumflex

  python3 -c 'print("\u7686\u3055\u3093\u3001\u3053\u3093\u306b\u3061\u306f")'

shows the same (Kanji?) glyphs the web page I found shows.

This file displays properly when I cat it out:

  http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt

All the languages are rendered properly, and even the braille and the
cool graphical stuff at the bottom is OK.  Opera and Chrome both fail
to render several sections of that file, but Firefox and mutt's urxvt
terminal appear to get it all right.  The urxvt terminal is even a
little better than Firefox which has some minor alignment flaws in the
large bracketted expression in the right-hand portion of the
Mathematics and Sciences section.
  
I just don't see how it could be a problem with the terminal or the
font selection.

> My last suggestion would be to reinstall your system, and choose a
> unicode environment from the get-go.  That's pretty extreme, but it's
> the default these days, and I have not had any Unicode issues of any
> kind on systems I've installed in the last, oh, 5 years or so
> (installed with unicode locales from the start).

That's probably what I should do when I have a couple days to kill.

-- 
Grant Edwards               grant.b.edwards        Yow! Here I am at the flea
                                  at               market but nobody is buying
                              gmail.com            my urine sample bottles ...

Reply via email to