Skip to content

Commit a1c5a94

Browse files
lazkanaveen521kk
authored andcommitted
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 cd08d00 commit a1c5a94

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
@@ -5177,11 +5177,14 @@ AC_MSG_RESULT([$with_freelists])
51775177
AC_MSG_CHECKING([for --with-c-locale-coercion])
51785178
AC_ARG_WITH(
51795179
[c-locale-coercion],
5180-
[AS_HELP_STRING([--with-c-locale-coercion], [enable C locale coercion to a UTF-8 based locale (default is yes)])])
5180+
[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)])])
51815181

51825182
if test -z "$with_c_locale_coercion"
51835183
then
5184-
with_c_locale_coercion="yes"
5184+
case $host in
5185+
*-*-mingw*) with_c_locale_coercion="no";;
5186+
*) with_c_locale_coercion="yes";;
5187+
esac
51855188
fi
51865189
if test "$with_c_locale_coercion" != "no"
51875190
then

0 commit comments

Comments
 (0)