From 4c1a1a1bc633c20ba1c71eec18311198220d7b4b Mon Sep 17 00:00:00 2001 From: raven42 Date: Wed, 6 Jan 2021 07:34:09 -0600 Subject: [PATCH] Use universal_newlines for Popen call (#733) Closes #629 --- autoload/tagbar.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 2785447..52295b7 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -3035,7 +3035,7 @@ function! s:run_system(cmd, version) abort exec pyx . '__argv = {"args":vim.eval("a:cmd"), "shell":True}' exec pyx . '__argv["stdout"] = subprocess.PIPE' exec pyx . '__argv["stderr"] = subprocess.STDOUT' - exec pyx . '__pp = subprocess.Popen(**__argv)' + exec pyx . '__pp = subprocess.Popen(**__argv, universal_newlines=True)' exec pyx . '__return_text = __pp.stdout.read()' exec pyx . '__pp.stdout.close()' exec pyx . '__return_code = __pp.wait()'