[Top][All Lists]

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

Re: [vile] vile-9.6j.patch.gz

From: Thomas Dickey
Subject: Re: [vile] vile-9.6j.patch.gz
Date: Sun, 30 Mar 2008 20:44:58 -0400 (EDT)

On Sun, 30 Mar 2008, Paul van Tilburg wrote:

One oddity that I can see at the moment is that using :show-printable,
the second column using your locale settings is showing things like \?FA,
where the en_US.UTF-8 that I normally use is showing the Latin-1 code.
(I expect the latter).  I'll investigate that - it might be part of the

I seem them as \xFA.  But that's probably because I opened the testfile and vile
jumped to utf-8 mode.

I see the explanation for the :show-printable - when running with file-encoding=utf-8, all of the buffers that aren't explicitly specified
come out as utf-8.  However, the show-printable data are really for 8-bit
(narrow) locale, e.g., nl_NL.

That jogs my mind a little here - an assumption built into the locale
code that stripping ".UTF8" off will yield a "narrow" locale.  But I
seem to recall that it's an alias which usually but not always gives
that result.

Here's what I have in my /etc/locale.gen for nl_NL and en_US lines:

nl_NL ISO-8859-1
nl_NL.UTF-8 UTF-8

en_US ISO-8859-1
en_US.ISO-8859-15 ISO-8859-15
en_US.UTF-8 UTF-8

If you had a

nl_NL UTF-8

line that would confuse vile (it would get the proper encoding, but would
assume it had a narrow locale whose properties were different).

Thomas E. Dickey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]