diff options
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 5ffecb3..b647f3b 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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 *); |