NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: setup for English/Japanese



On 28/07/2020 12:58, Steve Blinkhorn wrote:
> I would welcome advice on the sequence of steps needed to get vim to
> work on files that are mixed English and Japanese, utf-8.  I run stock
> NetBSD 7.0 on amd64, and habitually (it's a long-standing habit) use
> csh.  There are several vim versions in pkgsrc; there
> is a tutorial document on netbsd.org that seems to recommend using
> urxvt, and makes mentions a few shells but not csh.
>
> I've spent half a day trying to get things to work without success (on
> MS Windows I just call up gvim and it works out of the box, but that's
> very inconvenient in other ways).  Is there a step-by-step guide
> anywhere?
>
I copied the following from Linux setups with working UTF8 to BSD:

Export the following:
LC_ALL=en_US.UTF8
or
LC_ALL=en_GB.UTF8
Since you seem to be UK based.

That seems to be all it takes to get applications to recognise and emit unicode.

For xterm you also need:

XTerm*locale: true

In your X resources.

This is all on NetBSD 9.0-STABLE amd64.

Havent tried this with Japanese though. I'm also not sure if the wscons console is capable of UTF8. I always use SSH connections via PuTTY or xterm.

Mike


Home | Main Index | Thread Index | Old Index