strange stray unicode character on the second line of all files

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

strange stray unicode character on the second line of all files

sarek
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 (-):
+acl               +extra_search      +mouse_netterm     +tag_old_static
+arabic            +farsi             +mouse_sgr         -tag_any_white
+autocmd           +file_in_path      +mouse_sysmouse    -tcl
+autochdir         +find_in_path      +mouse_urxvt       +termguicolors
-autoservername    +float             +mouse_xterm       +terminal
+balloon_eval      +folding           +multi_byte        +terminfo
+balloon_eval_term -footer            +multi_lang        +termresponse
+browse            +fork()            -mzscheme          +textobjects
++builtin_terms    +gettext           +netbeans_intg     +textprop
+byte_offset       -hangul_input      +num64             +timers
+channel           +iconv             +packages          +title
+cindent           +insert_expand     +path_extra        +toolbar
+clientserver      +job               +perl              +user_commands
+clipboard         +jumplist          +persistent_undo   +vartabs
+cmdline_compl     +keymap            +postscript        +vertsplit
+cmdline_hist      +lambda            +printer           +virtualedit
+cmdline_info      +langmap           +profile           +visual
+comments          +libcall           +python            +visualextra
+conceal           +linebreak         -python3           +viminfo
+cryptv            +lispindent        +quickfix          +vreplace
+cscope            +listcmds          +reltime           +wildignore
+cursorbind        +localmap          +rightleft         +wildmenu
+cursorshape       -lua               +ruby              +windows
+dialog_con_gui    +menu              +scrollbind        +writebackup
+diff              +mksession         +signs             +X11
+digraphs          +modify_fname      +smartindent       -xfontset
+dnd               +mouse             +startuptime       +xim
-ebcdic            +mouseshape        +statusline        +xpm
+emacs_tags        +mouse_dec         -sun_workshop      +xsmp_interact
+eval              -mouse_gpm         +syntax            +xterm_clipboard
+ex_extra          -mouse_jsbterm     +tag_binary        -xterm_save
   system vimrc file: "/usr/local/etc/vim/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "/usr/local/etc/vim/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/local/etc/vim"
 f-b for $VIMRUNTIME: "/usr/local/share/vim/vim81"
Compilation: cc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -I/usr/local/include/gtk-2.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libdrm -I/usr/local/include/libpng16 -I/usr/local/include/harfbuzz -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/atk-1.0 -D_THREAD_SAFE -pthread -DLIBICONV_PLUG -I/usr/local/include  -O2 -pipe  -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1     -I/usr/local/include 
Linking: cc -L/usr/local/lib -L/usr/local/lib -L.   -fstack-protector  -rdynamic -Wl,-R/usr/local/lib/perl5/5.26/mach/CORE   -fstack-protector  -L/usr/local/lib -Wl,--as-needed -o vim     -L/usr/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lpthread -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lfontconfig -lfreetype  -lSM -lICE -lXpm  -lXt -lX11  -lXdmcp -lSM -lICE    -lm -lelf  -pthread -lncurses  -lintl      -Wl,-R/usr/local/lib/perl5/5.26/mach/CORE -pthread -Wl,-E  -fstack-protector-strong -L/usr/local/lib  -L/usr/local/lib/perl5/5.26/mach/CORE -lperl -lpthread -lm -lcrypt -lutil  -L/usr/local/lib/python2.7/config -lpython2.7 -ldl -L/usr/local/lib -lintl -lutil -lm -Wl,--export-dynamic      -lruby24 -lelf -lunwind -lexecinfo -lprocstat -lthr -ldl -lcrypt -lm -lpthread -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib      

Default system vim config

User vimrc:

set term=xterm-256color
set t_Co=256
runtime colorscheme colors/slate.vim
syntax enable
:noh
:hi Constant ctermfg=220
:hi String ctermfg=220
:hi Identifier ctermfg=lightblue
:hi javaCommentTitle ctermfg=yellow
:hi javaDocComment ctermfg=178
:hi javaCommentTitle ctermfg=178
:hi javaAnnotation ctermfg=lightblue
:hi Comment ctermfg=178
:hi javaDocTags ctermfg=Yellow
:hi htmlTag ctermfg=220
:hi htmlEndTag ctermfg=220
:hi javaScriptBraces ctermfg=white
:hi javaScriptParens ctermfg=white
:hi javaScriptType ctermfg=white
:hi javaScriptFunction ctermfg=lightblue
:hi xmlTag ctermfg=lightblue
:hi xmlTagName ctermfg=lightblue
:set t_ti=^[[?1049h
:set t_te=


--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

sarek
Forgot to mention that hitting ^R or ^L will clear the character from the screen

On Fri, Jan 25, 2019 at 4:40 AM Aryeh Friedman <[hidden email]> 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 (-):
+acl               +extra_search      +mouse_netterm     +tag_old_static
+arabic            +farsi             +mouse_sgr         -tag_any_white
+autocmd           +file_in_path      +mouse_sysmouse    -tcl
+autochdir         +find_in_path      +mouse_urxvt       +termguicolors
-autoservername    +float             +mouse_xterm       +terminal
+balloon_eval      +folding           +multi_byte        +terminfo
+balloon_eval_term -footer            +multi_lang        +termresponse
+browse            +fork()            -mzscheme          +textobjects
++builtin_terms    +gettext           +netbeans_intg     +textprop
+byte_offset       -hangul_input      +num64             +timers
+channel           +iconv             +packages          +title
+cindent           +insert_expand     +path_extra        +toolbar
+clientserver      +job               +perl              +user_commands
+clipboard         +jumplist          +persistent_undo   +vartabs
+cmdline_compl     +keymap            +postscript        +vertsplit
+cmdline_hist      +lambda            +printer           +virtualedit
+cmdline_info      +langmap           +profile           +visual
+comments          +libcall           +python            +visualextra
+conceal           +linebreak         -python3           +viminfo
+cryptv            +lispindent        +quickfix          +vreplace
+cscope            +listcmds          +reltime           +wildignore
+cursorbind        +localmap          +rightleft         +wildmenu
+cursorshape       -lua               +ruby              +windows
+dialog_con_gui    +menu              +scrollbind        +writebackup
+diff              +mksession         +signs             +X11
+digraphs          +modify_fname      +smartindent       -xfontset
+dnd               +mouse             +startuptime       +xim
-ebcdic            +mouseshape        +statusline        +xpm
+emacs_tags        +mouse_dec         -sun_workshop      +xsmp_interact
+eval              -mouse_gpm         +syntax            +xterm_clipboard
+ex_extra          -mouse_jsbterm     +tag_binary        -xterm_save
   system vimrc file: "/usr/local/etc/vim/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "/usr/local/etc/vim/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/local/etc/vim"
 f-b for $VIMRUNTIME: "/usr/local/share/vim/vim81"
Compilation: cc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -I/usr/local/include/gtk-2.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libdrm -I/usr/local/include/libpng16 -I/usr/local/include/harfbuzz -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/atk-1.0 -D_THREAD_SAFE -pthread -DLIBICONV_PLUG -I/usr/local/include  -O2 -pipe  -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1     -I/usr/local/include 
Linking: cc -L/usr/local/lib -L/usr/local/lib -L.   -fstack-protector  -rdynamic -Wl,-R/usr/local/lib/perl5/5.26/mach/CORE   -fstack-protector  -L/usr/local/lib -Wl,--as-needed -o vim     -L/usr/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lpthread -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lfontconfig -lfreetype  -lSM -lICE -lXpm  -lXt -lX11  -lXdmcp -lSM -lICE    -lm -lelf  -pthread -lncurses  -lintl      -Wl,-R/usr/local/lib/perl5/5.26/mach/CORE -pthread -Wl,-E  -fstack-protector-strong -L/usr/local/lib  -L/usr/local/lib/perl5/5.26/mach/CORE -lperl -lpthread -lm -lcrypt -lutil  -L/usr/local/lib/python2.7/config -lpython2.7 -ldl -L/usr/local/lib -lintl -lutil -lm -Wl,--export-dynamic      -lruby24 -lelf -lunwind -lexecinfo -lprocstat -lthr -ldl -lcrypt -lm -lpthread -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib      

Default system vim config

User vimrc:

set term=xterm-256color
set t_Co=256
runtime colorscheme colors/slate.vim
syntax enable
:noh
:hi Constant ctermfg=220
:hi String ctermfg=220
:hi Identifier ctermfg=lightblue
:hi javaCommentTitle ctermfg=yellow
:hi javaDocComment ctermfg=178
:hi javaCommentTitle ctermfg=178
:hi javaAnnotation ctermfg=lightblue
:hi Comment ctermfg=178
:hi javaDocTags ctermfg=Yellow
:hi htmlTag ctermfg=220
:hi htmlEndTag ctermfg=220
:hi javaScriptBraces ctermfg=white
:hi javaScriptParens ctermfg=white
:hi javaScriptType ctermfg=white
:hi javaScriptFunction ctermfg=lightblue
:hi xmlTag ctermfg=lightblue
:hi xmlTagName ctermfg=lightblue
:set t_ti=^[[?1049h
:set t_te=


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


--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

Tony Mechelynck
On Sat, Jan 26, 2019 at 12:31 AM Aryeh Friedman
<[hidden email]> wrote:

>
> Forgot to mention that hitting ^R or ^L will clear the character from the screen
>
> On Fri, Jan 25, 2019 at 4:40 AM Aryeh Friedman <[hidden email]> 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 (-):

This problem, or something quite like it, has recently been reported and fixed.

The above is Vim 8.1.676. The latest source as of this writing is
8.1.822; IOW there has already been 146 patches since the version you
used. Please try again with a newer Vim.

For a one-line description of every 8.1 patch so far, see
http://ftp.vim.org/pub/vim/patches/8.1/

Best regards,
Tony.

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

(editor/vim) Re: strange stray unicode character on the second line of all files

sarek
Note I have added the maintainer of the vim port on FreeBSD to the To header for reasons given in the body of the reply

On Fri, Jan 25, 2019 at 6:43 PM Tony Mechelynck <[hidden email]> wrote:
On Sat, Jan 26, 2019 at 12:31 AM Aryeh Friedman
<[hidden email]> wrote:
>
> Forgot to mention that hitting ^R or ^L will clear the character from the screen
>
> On Fri, Jan 25, 2019 at 4:40 AM Aryeh Friedman <[hidden email]> 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 (-):

This problem, or something quite like it, has recently been reported and fixed.

The above is Vim 8.1.676. The latest source as of this writing is
8.1.822; IOW there has already been 146 patches since the version you
used. Please try again with a newer Vim.

1. Since FreeBSD uses a centralized port and the port is currently only up through 676 I will wait until the official maintainer updates the port
 
2. I do not see any patches with descriptions off hand in the patch inventory after 676 that appear to relate to this issue.


--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

Bram Moolenaar
In reply to this post by sarek

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 -- [hidden email] -- 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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: (editor/vim) Re: strange stray unicode character on the second line of all files

sarek
In reply to this post by sarek


On Sat, Jan 26, 2019 at 9:54 AM Adam Weinberger <[hidden email]> wrote:
On Sat, Jan 26, 2019 at 1:59 AM Aryeh Friedman <[hidden email]> wrote:
>
> Note I have added the maintainer of the vim port on FreeBSD to the To header for reasons given in the body of the reply
>
> On Fri, Jan 25, 2019 at 6:43 PM Tony Mechelynck <[hidden email]> wrote:
>>
>> On Sat, Jan 26, 2019 at 12:31 AM Aryeh Friedman
>> <[hidden email]> wrote:
>> >
>> > Forgot to mention that hitting ^R or ^L will clear the character from the screen
>> >
>> > On Fri, Jan 25, 2019 at 4:40 AM Aryeh Friedman <[hidden email]> 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 (-):
>>
>> This problem, or something quite like it, has recently been reported and fixed.
>>
>> The above is Vim 8.1.676. The latest source as of this writing is
>> 8.1.822; IOW there has already been 146 patches since the version you
>> used. Please try again with a newer Vim.
>
>
> 1. Since FreeBSD uses a centralized port and the port is currently only up through 676 I will wait until the official maintainer updates the port
>
> 2. I do not see any patches with descriptions off hand in the patch inventory after 676 that appear to relate to this issue.

I update the FreBSD Vim port on the first of every month, but I'm
happy to update early if there's a breakage.

Updating is a matter of changing PORTVERSION in
/usr/ports/editors/vim/Makefile, and running 'make makesum' from that
dir.

Updated to 822 with no effect (see below)


Does this behavior change if you change TERM (say, screen-256color)?

No (with screen-256color)
 
If you ssh from the console? If you use a different terminal emulator?

If I use xterm (default settings and -rv) it disappears.

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: (editor/vim) Re: strange stray unicode character on the second line of all files

sarek


On Sat, Jan 26, 2019 at 10:56 AM Aryeh Friedman <[hidden email]> wrote:


On Sat, Jan 26, 2019 at 9:54 AM Adam Weinberger <[hidden email]> wrote:
On Sat, Jan 26, 2019 at 1:59 AM Aryeh Friedman <[hidden email]> wrote:
>
> Note I have added the maintainer of the vim port on FreeBSD to the To header for reasons given in the body of the reply
>
> On Fri, Jan 25, 2019 at 6:43 PM Tony Mechelynck <[hidden email]> wrote:
>>
>> On Sat, Jan 26, 2019 at 12:31 AM Aryeh Friedman
>> <[hidden email]> wrote:
>> >
>> > Forgot to mention that hitting ^R or ^L will clear the character from the screen
>> >
>> > On Fri, Jan 25, 2019 at 4:40 AM Aryeh Friedman <[hidden email]> 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$
>> >> $


Appears to happen if, and ONLY if, the second line is blank (i.e. ^$ will match it as a regex)
 

I update the FreBSD Vim port on the first of every month, but I'm
happy to update early if there's a breakage.

Updating is a matter of changing PORTVERSION in
/usr/ports/editors/vim/Makefile, and running 'make makesum' from that
dir.

Updated to 822 with no effect (see below)


Does this behavior change if you change TERM (say, screen-256color)?

No (with screen-256color)
 
If you ssh from the console? If you use a different terminal emulator?

If I use xterm (default settings and -rv) it disappears.

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


--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: (editor/vim) Re: strange stray unicode character on the second line of all files

sarek


On Sat, Jan 26, 2019 at 11:08 AM Adam Weinberger <[hidden email]> wrote:
On Sat, Jan 26, 2019 at 9:00 AM Aryeh Friedman <[hidden email]> wrote:
>
>
>
> On Sat, Jan 26, 2019 at 10:56 AM Aryeh Friedman <[hidden email]> wrote:
>>
>>
>>
>> On Sat, Jan 26, 2019 at 9:54 AM Adam Weinberger <[hidden email]> wrote:
>>>
>>> On Sat, Jan 26, 2019 at 1:59 AM Aryeh Friedman <[hidden email]> wrote:
>>> >
>>> > Note I have added the maintainer of the vim port on FreeBSD to the To header for reasons given in the body of the reply
>>> >
>>> > On Fri, Jan 25, 2019 at 6:43 PM Tony Mechelynck <[hidden email]> wrote:
>>> >>
>>> >> On Sat, Jan 26, 2019 at 12:31 AM Aryeh Friedman
>>> >> <[hidden email]> wrote:
>>> >> >
>>> >> > Forgot to mention that hitting ^R or ^L will clear the character from the screen
>>> >> >
>>> >> > On Fri, Jan 25, 2019 at 4:40 AM Aryeh Friedman <[hidden email]> 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$
>>> >> >> $
>>>
>
> Appears to happen if, and ONLY if, the second line is blank (i.e. ^$ will match it as a regex)
>
>>>
>>>
>>> I update the FreBSD Vim port on the first of every month, but I'm
>>> happy to update early if there's a breakage.
>>>
>>> Updating is a matter of changing PORTVERSION in
>>> /usr/ports/editors/vim/Makefile, and running 'make makesum' from that
>>> dir.
>>
>>
>> Updated to 822 with no effect (see below)
>>
>>>
>>> Does this behavior change if you change TERM (say, screen-256color)?
>>
>>
>> No (with screen-256color)
>>
>>>
>>> If you ssh from the console? If you use a different terminal emulator?
>>
>>
>> If I use xterm (default settings and -rv) it disappears.

Interesting. And does that only happen for java files, or for other
files as well?

Could it be related to a plugin? Or do you have a listchars that
specifies a unicode character that isn't present in the font that
xfce4-term is using? You might try enabling plugins one at a time, not
setting listchars, and make sure that the file you're editing is using
UNIX line-endings.

It does on all files (for example here is a case of doing it on my vimrc)... the file in question was created from scratch in vim on FreeBSD 11.2 (version controlled by devel/aegis [which I am the maintainer of]):
set term=xterm-256color
  �
set t_Co=256
runtime colorscheme colors/slate.vim
syntax enable
:noh
:hi Constant ctermfg=220
:hi String ctermfg=220
:hi Identifier ctermfg=lightblue
:hi javaCommentTitle ctermfg=yellow
:hi javaDocComment ctermfg=178
:hi javaCommentTitle ctermfg=178
:hi javaAnnotation ctermfg=lightblue
:hi Comment ctermfg=178
:hi javaDocTags ctermfg=Yellow
:hi htmlTag ctermfg=220
:hi htmlEndTag ctermfg=220
:hi javaScriptBraces ctermfg=white
:hi javaScriptParens ctermfg=white
:hi javaScriptType ctermfg=white
:hi javaScriptFunction ctermfg=lightblue
:hi xmlTag ctermfg=lightblue
:hi xmlTagName ctermfg=lightblue
:set t_ti=^[[?1049h
:set t_te=

For completeness here is my uname -a:

FreeBSD timeless 11.2-RELEASE-p4 FreeBSD 11.2-RELEASE-p4 #1 r339445: Sat Oct 20 02:23:58 EDT 2018     root@timeless:/usr/obj/usr/src/sys/GENERIC  amd64

As far I know I am not using any plugins unless they came installed with the default port options here is my /var/db/ports/editors_vim/options:

# This file is auto-generated by 'make config'.
# Options for vim-8.1.0555
_OPTIONS_READ=vim-8.1.0555
_FILE_COMPLETE_OPTIONS_LIST=CSCOPE DEFAULT_VIMRC NLS XTERM_SAVE CTAGS_BASE CTAGS_EXUBERANT CTAGS_UNIVERSAL ATHENA CONSOLE GNOME GTK2 GTK3 MOTIF X11 LUA PERL PYTHON2 PYTHON3 RUBY SCHEME TCL
OPTIONS_FILE_SET+=CSCOPE
OPTIONS_FILE_SET+=DEFAULT_VIMRC
OPTIONS_FILE_SET+=NLS
OPTIONS_FILE_UNSET+=XTERM_SAVE
OPTIONS_FILE_UNSET+=CTAGS_BASE
OPTIONS_FILE_SET+=CTAGS_EXUBERANT
OPTIONS_FILE_UNSET+=CTAGS_UNIVERSAL
OPTIONS_FILE_UNSET+=ATHENA
OPTIONS_FILE_UNSET+=CONSOLE
OPTIONS_FILE_UNSET+=GNOME
OPTIONS_FILE_SET+=GTK2
OPTIONS_FILE_UNSET+=GTK3
OPTIONS_FILE_UNSET+=MOTIF
OPTIONS_FILE_UNSET+=X11
OPTIONS_FILE_UNSET+=LUA
OPTIONS_FILE_SET+=PERL
OPTIONS_FILE_SET+=PYTHON2
OPTIONS_FILE_UNSET+=PYTHON3
OPTIONS_FILE_SET+=RUBY
OPTIONS_FILE_UNSET+=SCHEME
OPTIONS_FILE_UNSET+=TCL



# Adam


--
Adam Weinberger
[hidden email] // [hidden email]
https://www.adamw.org


--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

sarek
In reply to this post by Bram Moolenaar


On Sat, Jan 26, 2019 at 9:13 AM Bram Moolenaar <[hidden email]> 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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

Bram Moolenaar

Aryeh Friedman wrote:

> On Sat, Jan 26, 2019 at 9:13 AM Bram Moolenaar <[hidden email]> wrote:
> >
> > Aryeh Friedman wrote:
> >
> > > For some odd reason (bug?) a stray unprintable unicode character appear=
> s
> > > 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
> > >   =EF=BF=BD <-- 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

The problem is probably caused by the terminal or a wrong termcap entry.

Try adding this to your .vimrc:

        set t_u7=

--
Futility Factor: No experiment is ever a complete failure - it can always
serve as a negative example.

 /// Bram Moolenaar -- [hidden email] -- 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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

sarek


On Sat, Jan 26, 2019 at 2:19 PM Bram Moolenaar <[hidden email]> wrote:

Aryeh Friedman wrote:

> On Sat, Jan 26, 2019 at 9:13 AM Bram Moolenaar <[hidden email]> wrote:
> >
> > Aryeh Friedman wrote:
> >
> > > For some odd reason (bug?) a stray unprintable unicode character appear=
> s
> > > 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
> > >   =EF=BF=BD <-- 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

The problem is probably caused by the terminal or a wrong termcap entry.

Try adding this to your .vimrc:

        set t_u7=


That worked now to track down the root cause.

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.