From 7e8aeb69709b73cdbdaf50f4d26ab45d7920b7f0 Mon Sep 17 00:00:00 2001 From: Vivian De Smedt Date: Mon, 1 Feb 2021 06:12:54 +0100 Subject: [PATCH] Use utf8 encoding to read ctags output, fixes #748 (#749) Co-authored-by: Vivian De Smedt --- autoload/tagbar.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index d18cd2e..12827e7 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -3052,7 +3052,7 @@ function! s:run_system(cmd, version) abort exec pyx . '__argv["stdout"] = subprocess.PIPE' exec pyx . '__argv["stderr"] = subprocess.STDOUT' exec pyx . '__argv["errors"] = "ignore"' - exec pyx . '__pp = subprocess.Popen(**__argv, universal_newlines=True)' + exec pyx . '__pp = subprocess.Popen(**__argv, universal_newlines=True, encoding="utf8")' exec pyx . '__return_text = __pp.stdout.read()' exec pyx . '__pp.stdout.close()' exec pyx . '__return_code = __pp.wait()'