Skip to content

Commit 3f05a69

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 d5668b6 commit 3f05a69

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
@@ -5006,11 +5006,14 @@ AC_MSG_RESULT([$with_freelists])
50065006
AC_MSG_CHECKING([for --with-c-locale-coercion])
50075007
AC_ARG_WITH(
50085008
[c-locale-coercion],
5009-
[AS_HELP_STRING([--with-c-locale-coercion], [enable C locale coercion to a UTF-8 based locale (default is yes)])])
5009+
[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)])])
50105010

50115011
if test -z "$with_c_locale_coercion"
50125012
then
5013-
with_c_locale_coercion="yes"
5013+
case $host in
5014+
*-*-mingw*) with_c_locale_coercion="no";;
5015+
*) with_c_locale_coercion="yes";;
5016+
esac
50145017
fi
50155018
if test "$with_c_locale_coercion" != "no"
50165019
then

0 commit comments

Comments
 (0)