Skip to content

Commit e234fae

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 #36
1 parent ee71d22 commit e234fae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

configure.ac

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3893,11 +3893,14 @@ AC_MSG_RESULT($with_pymalloc)
38933893
AC_MSG_CHECKING(for --with-c-locale-coercion)
38943894
AC_ARG_WITH(c-locale-coercion,
38953895
AS_HELP_STRING([--with-c-locale-coercion],
3896-
[enable C locale coercion to a UTF-8 based locale (default is yes)]))
3896+
[enable C locale coercion to a UTF-8 based locale (default is yes on Unix, no on Windows)]))
38973897

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

0 commit comments

Comments
 (0)