mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-13 01:20:24 +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,
|
||||
stderr=subprocess.PIPE,
|
||||
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()
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user