|
From: | Thomas Dickey |
Subject: | Re: [vile] Accented (and other extended) characters lost when pasting into vile, OK otherwise. |
Date: | Mon, 5 Jan 2009 08:33:11 -0500 (EST) |
On Mon, 5 Jan 2009, Chris G wrote:
On Mon, Jan 05, 2009 at 07:03:03AM -0500, Thomas Dickey wrote:On Mon, 5 Jan 2009, Chris G wrote:I'm copying text from an ssh session on a remote machine into local files I'm editing with vile. If I put vile into insert mode and past the text into vile itself then all extended (i.e. >127) characters are lost. They disappear completely, they don't appear as backslash sequences or anything like that.it's supposed to work... Which version of vile are you using, and what terminal emulator? (so I can try to reproduce it, this evening).It's "vile version 9.6m for linux-gnu" running on xubuntu 8.10. It's running in the xfce default terminal which is "Terminal 0.2.8 X Terminal Emulator". Strange, I've just retried it (trying a gnome-terminal as well as the above xfce terminal) and it works this time. I'll try and tie down exactly when it fails. Aha! I've got it. The problem is in xvile, not vile. When I paste into vile it works OK, when I paste into xvile it doesn't. The xvile version is the same as the vile one above.
With xvile, there's a bug-fix that comes to mind. My 9.6m changes introduced an error in this area, which is fixed in 9.7c: 20080727 (c) + fix initialization of XIM in xvile; compose sequences did not work. Also make xvile build XIM code for configurations other than Athena, by supplying fallback for resource definitions. (report/analysis by Fabien Coutant). (UTF-8 multibyte stuff is for this purpose a "compose sequence")
thanksHowever if I paste onto the end of the file I'm editing or into a temporary file and read that into vile all the accented characters are there. E.g. if I'm editing a file 'thisFile' and I do:- cat >>thisFile <do the paste in this window> CTRL/D Then the accented characters appear correctly in vile while editing 'thisFile' (need to do :e! of course). Why doesn't the paste direct into vile work? I'm all UTF as far as I know. 'locale' on the machine where vile is running shows everything as "en_GB.UTF-8". On the remote machine where the text is coming from everything is also "en_GB.UTF-8". -- Chris Green _______________________________________________ vile mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/vile-- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net-- Chris Green _______________________________________________ vile mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/vile
-- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |