Skip to content

Commit 01581db

Browse files
committed
Fix detection of bind_textdomain_codeset in libintl
In Python-2.7, we were only searching for bind_textdomain_codeset in libc. We should have also checked for it in libintl. This change from Mel Flynn https://bugs.python.org/file24918/python27-configure.in.patch fixes that. Fixes: https://bugs.python.org/issue14353
1 parent 7b5dca8 commit 01581db

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix detection of the bind_textdomain_codeset function for building gettext
2+
support into the locale module.

configure.ac

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2440,6 +2440,9 @@ fi
24402440
AC_CHECK_LIB(intl, textdomain,
24412441
AC_DEFINE(WITH_LIBINTL, 1,
24422442
[Define to 1 if libintl is needed for locale functions.]))
2443+
AC_SEARCH_LIBS(bind_textdomain_codeset, intl,
2444+
AC_DEFINE(HAVE_BIND_TEXTDOMAIN_CODESET, 1,
2445+
[Define to 1 if bind_textdomain_codeset is available.]))
24432446

24442447
# checks for system dependent C++ extensions support
24452448
case "$ac_sys_system" in
@@ -3117,7 +3120,7 @@ fi
31173120
AC_MSG_RESULT(MACHDEP_OBJS)
31183121

31193122
# checks for library functions
3120-
AC_CHECK_FUNCS(alarm setitimer getitimer bind_textdomain_codeset chown \
3123+
AC_CHECK_FUNCS(alarm setitimer getitimer chown \
31213124
clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
31223125
gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
31233126
getentropy \

0 commit comments

Comments
 (0)