diff Python/bltinmodule.c @ 17822:50376d470648 legacy-trunk

Fix the Py_FileSystemDefaultEncoding checkin - declare the variable in a fileobject.h, and initialize it in bltinmodule.
author Mark Hammond <mhammond@skippinet.com.au>
date Mon, 14 May 2001 12:17:34 +0000
parents f7c385226f65
children eb03c6fc31e5
line wrap: on
line diff
--- a/Python/bltinmodule.c	Mon May 14 09:32:26 2001 +0000
+++ b/Python/bltinmodule.c	Mon May 14 12:17:34 2001 +0000
@@ -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 *);