mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +00:00
Fix the Py_FileSystemDefaultEncoding checkin - declare the variable in a fileobject.h, and initialize it in bltinmodule.
This commit is contained in:
parent
834f4dd7c9
commit
26cffde4c2
3 changed files with 13 additions and 11 deletions
|
@ -13,7 +13,14 @@
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
extern const char *Py_FileSystemDefaultEncoding;
|
||||
/* The default encoding used by the platform file system APIs
|
||||
Can remain NULL for all platforms that don't have such a concept
|
||||
*/
|
||||
#ifdef MS_WIN32
|
||||
const char *Py_FileSystemDefaultEncoding = "mbcs";
|
||||
#else
|
||||
const char *Py_FileSystemDefaultEncoding = NULL; /* use default */
|
||||
#endif
|
||||
|
||||
/* Forward */
|
||||
static PyObject *filterstring(PyObject *, PyObject *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue