From 26cffde4c2950ac2afb41f19a65a28c4e905060d Mon Sep 17 00:00:00 2001 From: Mark Hammond Date: Mon, 14 May 2001 12:17:34 +0000 Subject: Fix the Py_FileSystemDefaultEncoding checkin - declare the variable in a fileobject.h, and initialize it in bltinmodule. --- Python/bltinmodule.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Python/bltinmodule.c') diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 5ffecb3443..b647f3b74d 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -13,7 +13,14 @@ #include #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 *); -- cgit v1.2.1