I meant
- Change the encoding used by
text=True
to UTF-8 likeopen(filename)
, or - Deprecate
text
.
When user want to use locale encoding, user need to specify encoding="locale"
anyway.
But I think default encoding of PIPE should be consistent with default encoding of stdio.
If we don’t change the stdio encoding when changing default text encoding, no change is needed for text=True
.
See Add legacy_text_encoding option to make UTF-8 default - #3 by methane for discussion about stdio.