From 9ebbd888723033d1414e530165235bdb0e4633e1 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Fri, 31 Jul 2015 17:42:27 +0900 Subject: [PATCH] Updating plug.vim --- .vim/autoload/plug.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.vim/autoload/plug.vim b/.vim/autoload/plug.vim index cabeb4f..6e14d0e 100644 --- a/.vim/autoload/plug.vim +++ b/.vim/autoload/plug.vim @@ -33,6 +33,7 @@ " " Unmanaged plugin (manually installed and updated) " Plug '~/my-prototype-plugin' " +" " Add plugins to &runtimepath " call plug#end() " " Then reload .vimrc and :PlugInstall to install plugins. @@ -1191,7 +1192,7 @@ class Command(object): raise CmdTimedOut(['Timeout!']) tfile.seek(0) - result = [line.decode().rstrip() for line in tfile] + result = [line.decode('utf-8', 'replace').rstrip() for line in tfile] if proc.returncode != 0: msg = [''] @@ -1343,7 +1344,7 @@ def esc(name): def nonblock_read(fname): """ Read a file with nonblock flag. Return the last line. """ fread = os.open(fname, os.O_RDONLY | os.O_NONBLOCK) - buf = os.read(fread, 100000).decode() + buf = os.read(fread, 100000).decode('utf-8', 'replace') os.close(fread) line = buf.rstrip('\r\n')