Decode a null-terminated string using Py_FileSystemDefaultEncoding and the "surrogateescape" error handler.
If Py_FileSystemDefaultEncoding is not set, fall back to the locale encoding.
Use PyUnicode_DecodeFSDefaultAndSize() if the string length is known. Availability: >= 3.2
See Implementation
Decode a null-terminated string using Py_FileSystemDefaultEncoding and the "surrogateescape" error handler.
If Py_FileSystemDefaultEncoding is not set, fall back to the locale encoding.
Use PyUnicode_DecodeFSDefaultAndSize() if the string length is known. Availability: >= 3.2