1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 11:30:28 +01:00

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 Smedt
2021-02-01 06:12:54 +01:00
committed by GitHub
parent 7a968502d7
commit 7e8aeb6970

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()'