diff Python/bltinmodule.c @ 71193:13e6d3cb2ecd

Issue #9642: Uniformize the tests on the availability of the mbcs codec Add a new HAVE_MBCS define.
author Victor Stinner <victor.stinner@haypocalc.com>
date Mon, 04 Jul 2011 14:23:54 +0200
parents 7ce685cda0ae
children 7368d0e9b33e
line wrap: on
line diff
--- a/Python/bltinmodule.c	Mon Jul 04 13:55:40 2011 +0200
+++ b/Python/bltinmodule.c	Mon Jul 04 14:23:54 2011 +0200
@@ -18,7 +18,7 @@
    Don't forget to modify PyUnicode_DecodeFSDefault() if you touch any of the
    values for Py_FileSystemDefaultEncoding!
 */
-#if defined(MS_WINDOWS) && defined(HAVE_USABLE_WCHAR_T)
+#ifdef HAVE_MBCS
 const char *Py_FileSystemDefaultEncoding = "mbcs";
 int Py_HasFileSystemDefaultEncoding = 1;
 #elif defined(__APPLE__)