Skip to content

Commit

Permalink
Specify encoding in fdopen. Fixes pytest-dev#195.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 27, 2023
1 parent fd392fa commit 2dc1048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion execnet/gateway_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def start(self, func, args=()):
def fdopen(self, fd, mode, bufsize=1):
import os

return os.fdopen(fd, mode, bufsize)
return os.fdopen(fd, mode, bufsize, encoding="utf-8")

def Lock(self):
import threading
Expand Down

0 comments on commit 2dc1048

Please sign in to comment.