Skip to content

Commit b9bbecf

Browse files
committed
Reconfig subprocess stdout encoding for Windows
1 parent 950acd2 commit b9bbecf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hsds/hsds_app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ def run(self):
305305
p = subprocess.Popen(
306306
pargs, bufsize=1, universal_newlines=True, shell=False, stdout=pout
307307
)
308+
p.stdout.reconfigure(encoding='utf-8')
308309
self._processes[pname] = p
309310
# setup queue so we can check on process output without blocking
310311
q = queue.Queue()

0 commit comments

Comments
 (0)