Skip to content

Commit 6a5e369

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 c43b874 commit 6a5e369

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
@@ -3884,11 +3884,14 @@ AC_MSG_RESULT($with_pymalloc)
38843884
AC_MSG_CHECKING(for --with-c-locale-coercion)
38853885
AC_ARG_WITH(c-locale-coercion,
38863886
AS_HELP_STRING([--with-c-locale-coercion],
3887-
[enable C locale coercion to a UTF-8 based locale (default is yes)]))
3887+
[enable C locale coercion to a UTF-8 based locale (default is yes on Unix, no on Windows)]))
38883888

38893889
if test -z "$with_c_locale_coercion"
38903890
then
3891-
with_c_locale_coercion="yes"
3891+
case $host in
3892+
*-*-mingw*) with_c_locale_coercion="no";;
3893+
*) with_c_locale_coercion="yes";;
3894+
esac
38923895
fi
38933896
if test "$with_c_locale_coercion" != "no"
38943897
then

0 commit comments

Comments
 (0)