File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,6 +83,10 @@ Extensions
8383Library
8484-------
8585
86+ - Issue #9603: posix.ttyname() and posix.ctermid() decode the terminal name
87+ using the filesystem encoding and surrogateescape error handler. Patch
88+ written by David Watson.
89+
8690- Issue #8688: MANIFEST files created by distutils now include a magic
8791 comment indicating they are generated. Manually maintained MANIFESTs
8892 without this marker will not be overwritten or removed.
Original file line number Diff line number Diff line change @@ -1849,7 +1849,7 @@ posix_ttyname(PyObject *self, PyObject *args)
18491849#endif
18501850 if (ret == NULL )
18511851 return posix_error ();
1852- return PyUnicode_FromString (ret );
1852+ return PyUnicode_DecodeFSDefault (ret );
18531853}
18541854#endif
18551855
@@ -1871,7 +1871,7 @@ posix_ctermid(PyObject *self, PyObject *noargs)
18711871#endif
18721872 if (ret == NULL )
18731873 return posix_error ();
1874- return PyUnicode_FromString (buffer );
1874+ return PyUnicode_DecodeFSDefault (buffer );
18751875}
18761876#endif
18771877
You can’t perform that action at this time.
0 commit comments