mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
use UTF-8 encoding in subprocess.Popen
This commit is contained in:
@ -358,7 +358,8 @@ def run_user_command(command):
|
|||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE,
|
stderr=subprocess.PIPE,
|
||||||
close_fds=False, # Allows inheriting file descriptors;
|
close_fds=False, # Allows inheriting file descriptors;
|
||||||
universal_newlines=True) # useful for process substitution
|
universal_newlines=True, # useful for process substitution
|
||||||
|
encoding='UTF-8')
|
||||||
stdout, stderr = proc.communicate()
|
stdout, stderr = proc.communicate()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Reference in New Issue
Block a user