Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 68c6dfb

Browse files
committed
Fix #69: Automatic install does not work on Windows 10.
Use binary coding system while saving the temp file.
1 parent 671c9ac commit 68c6dfb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: lsp-python-ms.el

+6-1
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,15 @@ With prefix, FORCED to redownload the server."
195195
(lambda (_data bar)
196196
;; Skip http header
197197
(re-search-forward "\r?\n\r?\n")
198-
(write-region (point) (point-max) temp-file)
199198

199+
;; Save to the temp file
200+
(let ((coding-system-for-write 'binary))
201+
(write-region (point) (point-max) temp-file))
202+
203+
;; Report progress
200204
(progress-reporter-done bar)
201205

206+
;; Extract the archive
202207
(message "Extracting Microsoft Python Language Server...")
203208
(when (file-exists-p lsp-python-ms-dir)
204209
(delete-directory lsp-python-ms-dir 'recursive))

0 commit comments

Comments
 (0)