Saturday, January 26, 2019

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

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?

--
Proverb: A nightingale that forgets the lyrics is a hummingbird.

/// Bram Moolenaar -- Bram@Moolenaar.net -- 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_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:

Post a Comment