Use utf8 encoding to read ctags output, fixes #748 (#749)

Co-authored-by: Vivian De Smedt <Vivian.De-Smedt@tatasteeleurope.com>
This commit is contained in:
Vivian De SmedtandVivian De Smedt authored and GitHub committed 2021-02-01 08:12:54 +03:00
1 parent 7a968502d7
commit 7e8aeb6970
1 file changed
+1 -1
+1 -1
View File
@@ -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()'