[Python-checkins] cpython (3.3): Issue #19036: Including locale.h should not depend on HAVE_LANGINFO_H.

stefan.krah python-checkins at python.org
Mon Jan 20 15:36:47 CET 2014


http://hg.python.org/cpython/rev/f82b6ec1ae6e
changeset:   88580:f82b6ec1ae6e
branch:      3.3
parent:      88574:a6f748f40da6
user:        Stefan Krah <skrah at bytereef.org>
date:        Mon Jan 20 15:31:08 2014 +0100
summary:
  Issue #19036: Including locale.h should not depend on HAVE_LANGINFO_H.

files:
  Misc/ACKS          |  1 +
  Python/fileutils.c |  3 ++-
  2 files changed, 3 insertions(+), 1 deletions(-)


diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -545,6 +545,7 @@
 Nadav Horesh
 Alon Horev
 Jan Hosang
+Alan Hourihane
 Ken Howard
 Brad Howes
 Mike Hoy
diff --git a/Python/fileutils.c b/Python/fileutils.c
--- 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
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list