[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: vi international character display
Quoting Takehiko NOZAKI <takehiko.nozaki%gmail.com@localhost> (Sun, 13 Nov 2011
> > - The environment, which I'm fairly certain I didn't modify around
> > the time I observed the change, includes
> > TERM=rxvt-unicode
> it seems that TERM=rxvt-unicode(may be added by you, default
> terminfo database doesn't know such term type, so nvi may die
> quickly) lost capability to display i18n text.
I'm not so sure. I did install the terminfo entry to my personal
database (following the instructions in the package installation
message). But even if I move .terminfo.db aside and then run exactly
the commands you list below:
> 1. start urxvt with utf-8 locale.
> $ LANG=en_US.UTF-8 urxvt
> 2. in urxvt, launch vi with vt100 terminal
> $ TERM=vt100 vi foo.txt
I get \xe9 instead of é. I also get the same results in an xterm
(i.e. non-ascii works for less, but not for vi)
For reference, here's the stripped-down environment I used for the
When I change the locale to en_US.ISO8859-15 (as suggested by Martin
Husemann), vi displays accented characters again.
So it looks like the behaviour I'm seeing is not specific to urxvt
(since I can reproduce it with xterm), affects UTF-8 but not ISO8859
(single-byte?) locales, and depends on some yet-unidentified other
variable because you can't reproduce it.
Could you show your complete printenv output so I can try to run a test
in an identical environment?
Main Index |
Thread Index |