Random832 wrote:

> John Little <[email protected]> writes:
> 
> > On Sunday, November 8, 2015 at 4:52:26 PM UTC+13, Random832 wrote:
> >
> >> "U+25BD WHITE DOWN-POINTING TRIANGLE"
> >
> > Well done, is all I can say.  
> >
> > How do you start an xterm in non-utf8 mode?
> 
> As far as I can tell, it's non-utf8 by default when it's started as
> xterm [not uxterm] and the LC_CTYPE locale is set to a non-UTF8
> locale. Since the XQuartz application menu doesn't seem to initialize
> the locale variables, I was getting the issue from xterms started that
> way.
> 
> > If I reset my locale to C
> > and start an xterm then vim, vim uses latin1 and only the bd byte is
> > output.
> 
> MacVim defaults to enc=utf-8 even with the locale set to C; I can no
> longer reproduce the issue with the other versions.
> 
> > IMO, the code should explain why this magic number character is used.
> > Then we'd know how to pick another, maybe.
> 
> I think it explains it well enough, it's one of the ambiguous width
> characters (that is, characters that are double-width in East Asian
> character sets, but single width in other character sets).


If 'encoding' is utf-8 and your terminal isn't, you need to set 'tenc'
to "latin1".

Note that using a non-utf-8 terminal while 'encoding' is utf-8 means
there are many characters that can't be displayed.

-- 
You can't have everything.  Where would you put it?
                -- Steven Wright

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui