Saturday, January 26, 2019

Re: strange stray unicode character on the second line of all files



On Sat, Jan 26, 2019 at 9:13 AM Bram Moolenaar <Bram@moolenaar.net> wrote:

Aryeh Friedman wrote:

> For some odd reason (bug?) a stray unprintable unicode character appears
> several spaces over on the second line of every file I edit (even when the
> second line is nothing more then a new line):
>
> // src/java/specmed/devinv/DevInvUtil.java
>   � <-- The stray unicode character
> Here is the output for cat -e of the first two lines of the same file:
>
> // src/java/specmed/devinv/DevInvUtil.java$
> $
>
> Platform info:
> OS: FreeBSD 11.2
> Terminal type: ssh (xterm-256color) via xfce4-term 0.8.7.4 on xfce4 desktop
> (4.12)
> Vim --version output:
> VIM - Vi IMproved 8.1 (2018 May 18, compiled Jan 25 2019 04:31:10)
> Included patches: 1-676
> Compiled by aryehl@timeless
> Huge version with GTK2 GUI.  Features included (+) or not (-):

Looks like a leftover for the 'ambiwidth' test.  This outputs a
character in the second like and requests the cursor position, to find
out the width of that character.  It is then overwritten by two spaces.
The character used is 0x25bd, the character you see appears to be 0xfffd.
I guess the terminal didn't properly clean up.

The character is not in the text, how do you get it?

By simply opening the file (vim [file] -- no command line switches).... see the resubjected thread for a lot more detail


--
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: