Skip to content

Commit 52f7a15

Browse files
committed
Communicate with sourcekit-lsp using UTF-8
1 parent 3c849d0 commit 52f7a15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-sourcekit-lsp/test-sourcekit-lsp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def main():
136136
print('==== OUTPUT ====')
137137

138138
skargs = [args.sourcekit_lsp, '--sync', '-Xclangd', '-sync']
139-
p = subprocess.Popen(skargs, stdin=subprocess.PIPE, stdout=subprocess.PIPE, universal_newlines=True)
139+
p = subprocess.Popen(skargs, stdin=subprocess.PIPE, stdout=subprocess.PIPE, universal_newlines=True, encoding='utf-8')
140140
out, _ = p.communicate(lsp.script)
141141
print(out)
142142
print('')

0 commit comments

Comments
 (0)