2012年8月4日 Chris Jerdonek <chris.jerdonek at gmail.com>: > On Fri, Aug 3, 2012 at 3:59 PM, antoine.pitrou > <python-checkins at python.org> wrote: >> http://hg.python.org/cpython/rev/f17a1410ebe5 >> changeset: 78401:f17a1410ebe5 >> summary: >> Make TextIOWrapper's documentation clearer by copying the newline argument's description from open(). >> Now that this change is made, it may make sense to update the > subprocess documentation to reference TextIOWrapper's documentation > instead of open()'s (since use of the 'U' flag to open() is > discouraged in new code). >> "All line endings will be converted to '\n' as described for the > universal newlines 'U' mode argument to open()." >> (from http://docs.python.org/dev/library/subprocess.html#frequently-used-arguments > ) Good idea, can you please open an issue? The documentation is wrong: UTF-8 is not used, it's the locale encoding. Victor