Skip to content

Commit 518e610

Browse files
committed
Issue python#19977, python#19036: Always include <locale.h> in pythonrun.c
to get LC_CTYPE constant on Windows.
1 parent 07beb37 commit 518e610

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/pythonrun.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "ast.h"
1616
#include "marshal.h"
1717
#include "osdefs.h"
18+
#include <locale.h>
1819

1920
#ifdef HAVE_SIGNAL_H
2021
#include <signal.h>
@@ -25,7 +26,6 @@
2526
#endif
2627

2728
#ifdef HAVE_LANGINFO_H
28-
#include <locale.h>
2929
#include <langinfo.h>
3030
#endif
3131

0 commit comments

Comments
 (0)