Skip to content

Commit 711178f

Browse files
Merge pull request #178 from juergenhoetzel/fix-windows-fsi-process-encoding
Fix windows fsi process encoding
2 parents e57b8bd + 8852053 commit 711178f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

inf-fsharp-mode.el

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
(defvar inferior-fsharp-program
4040
(if fsharp-ac-using-mono
4141
"fsharpi --readline-"
42-
(concat "\"" (fsharp-mode--executable-find "fsi.exe") "\""))
42+
(concat "\"" (fsharp-mode--executable-find "fsi.exe") "\" --fsi-server-input-codepage:65001"))
4343
"*Program name for invoking an inferior fsharp from Emacs.")
4444

4545
;; End of User modifiable variables
@@ -93,7 +93,11 @@ be sent from another buffer in fsharp mode.
9393
(process-connection-type nil))
9494
(with-current-buffer (apply (function make-comint)
9595
inferior-fsharp-buffer-subname
96-
(car cmdlist) nil (cdr cmdlist))
96+
(car cmdlist) nil
97+
(cdr cmdlist))
98+
(when (eq system-type 'windows-nt)
99+
(set-process-coding-system (get-buffer-process (current-buffer))
100+
'utf-8 'utf-8))
97101
(inferior-fsharp-mode))
98102
(display-buffer inferior-fsharp-buffer-name))))
99103

0 commit comments

Comments
 (0)