Skip to content

Commit ca86974

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 33adc87 commit ca86974

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
@@ -4974,11 +4974,14 @@ AC_MSG_RESULT([$with_freelists])
49744974
AC_MSG_CHECKING([for --with-c-locale-coercion])
49754975
AC_ARG_WITH(
49764976
[c-locale-coercion],
4977-
[AS_HELP_STRING([--with-c-locale-coercion], [enable C locale coercion to a UTF-8 based locale (default is yes)])])
4977+
[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)])])
49784978

49794979
if test -z "$with_c_locale_coercion"
49804980
then
4981-
with_c_locale_coercion="yes"
4981+
case $host in
4982+
*-*-mingw*) with_c_locale_coercion="no";;
4983+
*) with_c_locale_coercion="yes";;
4984+
esac
49824985
fi
49834986
if test "$with_c_locale_coercion" != "no"
49844987
then

0 commit comments

Comments
 (0)