This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author San
Recipients San, steven.daprano
Date 2021-07-23.08:36:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627029412.97.0.213949821769.issue44709@roundup.psfhosted.org>
In-reply-to
Content
I get your point. But I thought setting 'stdout=PIPE' should not send the stdout directly to the terminal but rather through the pipe first?!

Also what you're saying seems to contradict that this doesn't happen if I don't set the encoding and let it be a byte-stream. In that case you get the full byte-stream without any control-characters being executed.

In my opinion it is unintuitive that this is happening. 

For instance if I open a file using io, that contains the same control characters like so:
f = open('cc.txt', 'r', encoding='latin_1')

Then gladly this doesn't happen and the control chars get escaped using \x1b which is what I would also expect to happen when using Popen.
History
Date User Action Args
2021-07-23 08:36:53Sansetrecipients: + San, steven.daprano
2021-07-23 08:36:52Sansetmessageid: <1627029412.97.0.213949821769.issue44709@roundup.psfhosted.org>
2021-07-23 08:36:52Sanlinkissue44709 messages
2021-07-23 08:36:52Sancreate