summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2014-01-20 15:31:08 +0100
committerStefan Krah <skrah@bytereef.org>2014-01-20 15:31:08 +0100
commit4224d21bb8266db7dd385f94de9597776ee624fa (patch)
tree10ad83fd781c10b62e875301dfc0dbc3d529b114
parent156ac84d0d836da0a47806f8967a534f4b255a97 (diff)
downloadcpython-4224d21bb8266db7dd385f94de9597776ee624fa.tar.gz
Issue #19036: Including locale.h should not depend on HAVE_LANGINFO_H.
-rw-r--r--Misc/ACKS1
-rw-r--r--Python/fileutils.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index 6dfbd49394..ba32f6b1d8 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -545,6 +545,7 @@ Randall Hopper
Nadav Horesh
Alon Horev
Jan Hosang
+Alan Hourihane
Ken Howard
Brad Howes
Mike Hoy
diff --git a/Python/fileutils.c b/Python/fileutils.c
index dbcb9234e0..d25111f4bb 100644
--- a/Python/fileutils.c
+++ b/Python/fileutils.c
@@ -1,11 +1,12 @@
#include "Python.h"
#include "osdefs.h"
+#include <locale.h>
+
#ifdef MS_WINDOWS
# include <windows.h>
#endif
#ifdef HAVE_LANGINFO_H
-#include <locale.h>
#include <langinfo.h>
#endif