summaryrefslogtreecommitdiffstats
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorXavier de Gaye <xdegaye@users.sourceforge.net>2016-11-16 06:24:20 (GMT)
committerXavier de Gaye <xdegaye@users.sourceforge.net>2016-11-16 06:24:20 (GMT)
commitb445ad7b04438b0a8507117d216d756088ea1848 (patch)
treec2670cb291a86863f7b3c50719587395c3fb6a37 /Python/pylifecycle.c
parent756b45ab6e0d8d88f985cf449298145244bd317b (diff)
downloadcpython-b445ad7b04438b0a8507117d216d756088ea1848.zip
cpython-b445ad7b04438b0a8507117d216d756088ea1848.tar.gz
cpython-b445ad7b04438b0a8507117d216d756088ea1848.tar.bz2
Issue #26920: Fix not getting the locale's charset upon initializing the interpreter,
on platforms that do not have langinfo
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r--Python/pylifecycle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 5b5cc2b..71f23dd 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -315,7 +315,7 @@ _Py_InitializeEx_Private(int install_sigs, int install_importlib)
initialized = 1;
_Py_Finalizing = NULL;
-#if defined(HAVE_LANGINFO_H) && defined(HAVE_SETLOCALE)
+#ifdef HAVE_SETLOCALE
/* Set up the LC_CTYPE locale, so we can obtain
the locale's charset without having to switch
locales. */