diff options
author | Mark Hammond <mhammond@skippinet.com.au> | 2001-05-14 12:17:34 (GMT) |
---|---|---|
committer | Mark Hammond <mhammond@skippinet.com.au> | 2001-05-14 12:17:34 (GMT) |
commit | 26cffde4c2950ac2afb41f19a65a28c4e905060d (patch) | |
tree | 04a94c73efbc91aa0a7492ccb8ce1d744f5b3fd9 /Python | |
parent | 834f4dd7c921593674409b9088458f378ac00ca4 (diff) | |
download | cpython-26cffde4c2950ac2afb41f19a65a28c4e905060d.zip cpython-26cffde4c2950ac2afb41f19a65a28c4e905060d.tar.gz cpython-26cffde4c2950ac2afb41f19a65a28c4e905060d.tar.bz2 |
Fix the Py_FileSystemDefaultEncoding checkin - declare the variable in a fileobject.h, and initialize it in bltinmodule.
Diffstat (limited to 'Python')
-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 *); |