Chris Jerdonek added the comment: > What to do if stdin doesn't have `encoding` attribute? Convert to bytes using > filesystemencoding?
If choosing an encoding, it probably makes sense to default to the same as for when universal_newlines=True, namely locale.getpreferredencoding(False). > Adding `encode` parameter for .communicate doesn't looks elegant. Also see issue 6135 (to allow setting encoding). ---------- nosy: +cjerdonek _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15649> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com