Skip to content

Commit edbdf21

Browse files
committed
configure.ac: Default to --without-c-locale-coercion on Windows
--with-c-locale-coercion otherwise defaults to yes and enables code that isn't compatible on Windows, mainly because the feature is Unix related. Default to "no" on Windows instead. Fixes python#36
1 parent e679a14 commit edbdf21

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

configure.ac

+5-2
Original file line numberDiff line numberDiff line change
@@ -5030,11 +5030,14 @@ AC_MSG_RESULT([$with_freelists])
50305030
AC_MSG_CHECKING([for --with-c-locale-coercion])
50315031
AC_ARG_WITH(
50325032
[c-locale-coercion],
5033-
[AS_HELP_STRING([--with-c-locale-coercion], [enable C locale coercion to a UTF-8 based locale (default is yes)])])
5033+
[AS_HELP_STRING([--with-c-locale-coercion], [enable C locale coercion to a UTF-8 based locale (default is yes on Unix, no on Windows)])])
50345034

50355035
if test -z "$with_c_locale_coercion"
50365036
then
5037-
with_c_locale_coercion="yes"
5037+
case $host in
5038+
*-*-mingw*) with_c_locale_coercion="no";;
5039+
*) with_c_locale_coercion="yes";;
5040+
esac
50385041
fi
50395042
if test "$with_c_locale_coercion" != "no"
50405043
then

0 commit comments

Comments
 (0)