Skip to content

Commit d7977c3

Browse files
authored
Merge pull request #104 from apple/ahoppen/utf-8
Communicate with sourcekit-lsp using UTF-8
2 parents 3c849d0 + 52f7a15 commit d7977c3

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)