mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix utility output capture encoding. Fixes #2854
This commit is contained in:
parent
3e1caa61e1
commit
8f070f6095
@ -362,6 +362,8 @@ class BatchProcess(object):
|
|||||||
out_completed = err_completed = False
|
out_completed = err_completed = False
|
||||||
process_output = (out != -1 and err != -1)
|
process_output = (out != -1 and err != -1)
|
||||||
enc = sys.getdefaultencoding()
|
enc = sys.getdefaultencoding()
|
||||||
|
if enc is None or enc == 'ascii':
|
||||||
|
enc = 'utf-8'
|
||||||
|
|
||||||
def read_log(logfile, log, pos, ctime):
|
def read_log(logfile, log, pos, ctime):
|
||||||
completed = True
|
completed = True
|
||||||
|
Loading…
Reference in New Issue
Block a user