[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vile] What do I need to do to get £ sign (GBP , pound sterling) to
From: |
Thomas Dickey |
Subject: |
Re: [vile] What do I need to do to get £ sign (GBP , pound sterling) to display in vile? |
Date: |
Thu, 08 May 2014 19:07:06 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Thu, May 08, 2014 at 11:02:23PM +0100, Chris Green wrote:
> On Thu, May 08, 2014 at 04:04:12PM -0400, Thomas Dickey wrote:
> > On Thu, May 08, 2014 at 11:19:40AM -0700, Brendan O'Dea wrote:
> > > On 8 May 2014 04:07, Chris Green <address@hidden> wrote:
> > > > I guess I must have left out a compilation option (or something) when
> > > > I built vile, I'm seeing '\u00A3' when I type £ (GBP pound sign).
> > > > I.e. my UTF8 setting has gon awry somewhere.
> > > >
> > > > The GBP sign is actually entered correctly and displays OK when I cat
> > > > the file in a terminal etc. It's also working correctyl in xvile.
> > >
> > > The fact that it is displaying as \u00A3 and not \xC2\x83 says that
> > > vile is built to handle unicode, and is correctly recognising the
> > > file's encoding as utf-8 ($buf-encoding), but is unable to display it.
> >
> > Also (presumably) his locale settings are the same for vile and xvile.
> >
> Yes, vile is run in a terminal on the same X desktop as xvile.
>
>
> > > What is $term-encoding? Which screen did you configure with? tcap,
> > > curses? ncurses?
> >
> ncurses
You have to use "ncursesw" to get a UTF-8-capable display.
> > That can be checked using ":show-variables". For instance I have this:
> >
> > $cfgopts = hypertext,locale,iconv,multibyte,perl,terminfo
>
> I have:-
>
> $cfgopts = hypertext,locale,iconv,multibyte,perl,curses
oddly, I see the same setting on this line whether it uses ncursew or ncurses
(not very helpful)
> Strangely if I ssh to another computer running xubuntu 14.04 and run
> vile on that machine (but displaying in the terminal window on my
> desktop) then GBP signs display OK. That machine is running vile 9.8l.
ldd can tell you which library (ncurses or ncursesw) is used.
> Finally I have copied vile 9.8l from another 64-bit xubuntu 14.04
> machine to this machine, running 9.8l I get GBP characters displayed
> OK, running 9.8m I don't. The only difference I can see is that the
> 9.8l is using terminfo rather than ncurses.
For termcap/terminfo, vile is painting the screen directly.
For curses/ncurses/ncursesw, the library does that - and only ncursesw will do.
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature
- [vile] What do I need to do to get £ sign (GB P, pound sterling) to display in vile?, Chris Green, 2014/05/08
- Re: [vile] What do I need to do to get £ sign (GBP , pound sterling) to display in vile?, Brendan O'Dea, 2014/05/08
- Re: [vile] What do I need to do to get £ sign (GBP , pound sterling) to display in vile?, Thomas Dickey, 2014/05/08
- Re: [vile] What do I need to do to get £ sign (GBP , pound sterling) to display in vile?, Chris Green, 2014/05/08
- Re: [vile] What do I need to do to get £ sign (GBP , pound sterling) to display in vile?,
Thomas Dickey <=
- Re: [vile] What do I need to do to get £ sign (GBP , pound sterling) to display in vile?, Chris Green, 2014/05/09
- Re: [vile] What do I need to do to get £ sign (GBP , pound sterling) to display in vile?, Chris Green, 2014/05/09
- Re: [vile] What do I need to do to get £ sign (GBP , pound sterling) to display in vile?, Thomas Dickey, 2014/05/09