Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeDecodeError #262

Closed
artofhuman opened this issue Jul 29, 2015 · 9 comments
Closed

UnicodeDecodeError #262

artofhuman opened this issue Jul 29, 2015 · 9 comments
Assignees
Labels

Comments

@artofhuman
Copy link

Hi, i have problem with update plugins
I run PlugUpgrade and then PlugUpdate and get errors UnicodeDecodeError, see screen
1 artofhuman-ubuntu 28ssh 29 2015-07-29 11-27-08

@junegunn
Copy link
Owner

@starcraftman Hi, any idea on this?

@starcraftman
Copy link
Contributor

@junegunn Hi there, been a while. Offhand, my assumption would be he's using python3 installer & some char popped into the stream that the character decoder couldn't handle. Probably not a difficult fix, but I need to reproduce it on my end. Mainly still use 2.

@artofhuman To debug, please provide:

  1. Output of: vim --version
  2. Output of: echo "$SHELL $LANG $LC_CTYPE"
    For step 2, ensure that is run in the shell vim-plug is using (unless otherwise specified your default one).
  3. Smallest part of your .vimrc that reproduces this.
  4. Does this always happen? Or does the install/update sometimes succeed without error?

@junegunn junegunn assigned junegunn and starcraftman and unassigned junegunn Jul 29, 2015
@junegunn
Copy link
Owner

@starcraftman Thanks for looking into it. I added you as a collaborator and assigned you to this. Hope you don't mind.

@starcraftman
Copy link
Contributor

@junegunn Sounds good, I'll try pitch in when around. No problem on this bug, once I can reproduce should be simple. Bit of a nuisance some of these 3.0 changes.

@artofhuman
Copy link
Author

@starcraftman
1.

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan  2 2014 19:39:32)
Заплатки: 1-52
С изменениями, внесёнными [email protected]
Скомпилирован  buildd@
Огромная версия без графического интерфейса.  Включённые (+) и отключённые (-) особенности:
+acl             +farsi           +mouse_netterm   +syntax
+arabic          +file_in_path    +mouse_sgr       +tag_binary
+autocmd         +find_in_path    -mouse_sysmouse  +tag_old_static
-balloon_eval    +float           +mouse_urxvt     -tag_any_white
-browse          +folding         +mouse_xterm     -tcl
++builtin_terms  -footer          +multi_byte      +terminfo
+byte_offset     +fork()          +multi_lang      +termresponse
+cindent         +gettext         -mzscheme        +textobjects
-clientserver    -hangul_input    +netbeans_intg   +title
-clipboard       +iconv           +path_extra      -toolbar
+cmdline_compl   +insert_expand   -perl            +user_commands
+cmdline_hist    +jumplist        +persistent_undo +vertsplit
+cmdline_info    +keymap          +postscript      +virtualedit
+comments        +langmap         +printer         +visual
+conceal         +libcall         +profile         +visualextra
+cryptv          +linebreak       +python          +viminfo
+cscope          +lispindent      -python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con      -lua             +rightleft       +windows
+diff            +menu            -ruby            +writebackup
+digraphs        +mksession       +scrollbind      -X11
-dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     -xim
+emacs_tags      -mouseshape      -sniff           -xsmp
+eval            +mouse_dec       +startuptime     -xterm_clipboard
+ex_extra        +mouse_gpm       +statusline      -xterm_save
+extra_search    -mouse_jsbterm   -sun_workshop    -xpm
            общесистемный файл vimrc: "$VIM/vimrc"
         пользовательский файл vimrc: "$HOME/.vimrc"
  второй пользовательский файл vimrc: "~/.vim/vimrc"
          пользовательский файл exrc: "$HOME/.exrc"
          значение $VIM по умолчанию: "/usr/share/vim"
Параметры компиляции: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Сборка: gcc   -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim        -lm -ltinfo -lnsl  -lselinux  -lacl -lattr -lgpm -ldl    -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

/bin/zsh ru_RU.UTF-8

I think its happen because my locale is RU

You can see my vimrc in this repo
https://github.com/artofhuman/vim/blob/master/vimrc

@starcraftman
Copy link
Contributor

@artofhuman I'm not sure how best to test this on my end, short of setting my whole system to RU. If you don't mind, could you try this version of plug. Just overwrite your plug.vim file with it, you can revert to the master version with :PlugUpgrade.

@artofhuman
Copy link
Author

@starcraftman I tried this version and update works. Thanks.

@starcraftman
Copy link
Contributor

@artofhuman Interesting. By default seems decode only interprets ascii chars. A bit inconvenient given prevalence of UTF-8. I guess performance?

I'll make a PR promptly.

@junegunn
Copy link
Owner

@starcraftman Great job. I'm cool with that you merge the PR yourself or just push the commit to master if it's a fix for python installer and you find it more convenient.

junegunn added a commit that referenced this issue Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants