diff -r 56ca8eb5207a Python/fileutils.c --- a/Python/fileutils.c Fri May 03 10:57:08 2013 -0400 +++ b/Python/fileutils.c Sat May 04 15:33:53 2013 +0200 @@ -4,8 +4,10 @@ # include #endif +#ifdef HAVE_LOCALE_H +#include +#endif #ifdef HAVE_LANGINFO_H -#include #include #endif diff -r 56ca8eb5207a configure.ac --- a/configure.ac Fri May 03 10:57:08 2013 -0400 +++ b/configure.ac Sat May 04 15:33:53 2013 +0200 @@ -1518,7 +1518,7 @@ CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" AC_CHECK_HEADERS(asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ fcntl.h grp.h \ -ieeefp.h io.h langinfo.h libintl.h ncurses.h process.h pthread.h \ +ieeefp.h io.h locale.h langinfo.h libintl.h ncurses.h process.h pthread.h \ sched.h shadow.h signal.h stdint.h stropts.h termios.h \ unistd.h utime.h \ poll.h sys/devpoll.h sys/epoll.h sys/poll.h \