Skip to content

Commit 8852053

Browse files
Set process encoding/decoding for inferior fsi.exe to utf-8
Emacs fails to detect the encoding when using (default) undecided-dos. Fixes #175.
1 parent 44e2ee5 commit 8852053

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

inf-fsharp-mode.el

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)