Skip to content

Commit 5aaa891

Browse files
committed
Use :coding 'no-conversion for tcp connections
Fixes #295
1 parent da3a361 commit 5aaa891

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dap-mode.el

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,8 @@ ADAPTER-ID the id of the adapter."
987987
(< retries dap-connect-retry-count))
988988
(condition-case err
989989
(setq result (open-network-stream session-name nil
990-
host port :type 'plain))
990+
host port :type 'plain
991+
:coding 'no-conversion))
991992
(file-error
992993
(let ((inhibit-message t))
993994
(message "Failed to connect to %s:%s with error message %s"
@@ -1411,7 +1412,9 @@ SLEEP-INTERVAL is the sleep interval between each retry."
14111412
(while (and (not success) (< retries (or retry-count 100)))
14121413
(condition-case err
14131414
(progn
1414-
(delete-process (open-network-stream "*connection-test*" nil host port :type 'plain))
1415+
(delete-process (open-network-stream "*connection-test*" nil host port
1416+
:type 'plain
1417+
:coding 'no-conversion))
14151418
(setq success t))
14161419
(file-error
14171420
(let ((inhibit-message t))

0 commit comments

Comments
 (0)