Skip to content

Commit 5a6ee05

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 e82317c commit 5a6ee05

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
@@ -3892,11 +3892,14 @@ AC_MSG_RESULT($with_pymalloc)
38923892
AC_MSG_CHECKING(for --with-c-locale-coercion)
38933893
AC_ARG_WITH(c-locale-coercion,
38943894
AS_HELP_STRING([--with-c-locale-coercion],
3895-
[enable C locale coercion to a UTF-8 based locale (default is yes)]))
3895+
[enable C locale coercion to a UTF-8 based locale (default is yes on Unix, no on Windows)]))
38963896

38973897
if test -z "$with_c_locale_coercion"
38983898
then
3899-
with_c_locale_coercion="yes"
3899+
case $host in
3900+
*-*-mingw*) with_c_locale_coercion="no";;
3901+
*) with_c_locale_coercion="yes";;
3902+
esac
39003903
fi
39013904
if test "$with_c_locale_coercion" != "no"
39023905
then

0 commit comments

Comments
 (0)