Re: [PATCH v2 0/1] Update check-python-tox test for pylint 2.10

2021-09-15 Thread John Snow
On Wed, Sep 15, 2021 at 5:10 AM Daniel P. Berrangé wrote: > On Wed, Sep 15, 2021 at 01:30:10AM -0400, John Snow wrote: > > V2: It's not safe to use sys.stderr.encoding to determine a "console > > encoding", because that uses the "current" stderr and not a > > hypothetically generic one -- and doi

Re: [PATCH v2 0/1] Update check-python-tox test for pylint 2.10

2021-09-15 Thread Daniel P . Berrangé
On Wed, Sep 15, 2021 at 01:30:10AM -0400, John Snow wrote: > V2: It's not safe to use sys.stderr.encoding to determine a "console > encoding", because that uses the "current" stderr and not a > hypothetically generic one -- and doing this causes the acceptance tests > to fail. > > Use UTF-8 instea

[PATCH v2 0/1] Update check-python-tox test for pylint 2.10

2021-09-14 Thread John Snow
V2: It's not safe to use sys.stderr.encoding to determine a "console encoding", because that uses the "current" stderr and not a hypothetically generic one -- and doing this causes the acceptance tests to fail. Use UTF-8 instead. Question: What encoding do terminal programs use? Is there an inher