Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b445ad7

Browse files
author
Xavier de Gaye
committed
Issue #26920: Fix not getting the locale's charset upon initializing the interpreter,
on platforms that do not have langinfo
1 parent 756b45a commit b445ad7

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ What's New in Python 3.6.0 beta 4
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #26920: Fix not getting the locale's charset upon initializing the
14+
interpreter, on platforms that do not have langinfo.
15+
1316
- Issue #28648: Fixed crash in Py_DecodeLocale() in debug build on Mac OS X
1417
when decode astral characters. Patch by Xiang Zhang.
1518

Python/pylifecycle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ _Py_InitializeEx_Private(int install_sigs, int install_importlib)
315315
initialized = 1;
316316
_Py_Finalizing = NULL;
317317

318-
#if defined(HAVE_LANGINFO_H) && defined(HAVE_SETLOCALE)
318+
#ifdef HAVE_SETLOCALE
319319
/* Set up the LC_CTYPE locale, so we can obtain
320320
the locale's charset without having to switch
321321
locales. */

0 commit comments

Comments
 (0)