Skip to content

Commit e3a7bde

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 14b59e8 commit e3a7bde

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
@@ -4980,11 +4980,14 @@ AC_MSG_RESULT([$with_freelists])
49804980
AC_MSG_CHECKING([for --with-c-locale-coercion])
49814981
AC_ARG_WITH(
49824982
[c-locale-coercion],
4983-
[AS_HELP_STRING([--with-c-locale-coercion], [enable C locale coercion to a UTF-8 based locale (default is yes)])])
4983+
[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)])])
49844984

49854985
if test -z "$with_c_locale_coercion"
49864986
then
4987-
with_c_locale_coercion="yes"
4987+
case $host in
4988+
*-*-mingw*) with_c_locale_coercion="no";;
4989+
*) with_c_locale_coercion="yes";;
4990+
esac
49884991
fi
49894992
if test "$with_c_locale_coercion" != "no"
49904993
then

0 commit comments

Comments
 (0)