Skip to content

Commit

Permalink
configure.ac: Default to --without-c-locale-coercion on Windows
Browse files Browse the repository at this point in the history
--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
  • Loading branch information
lazka authored and naveen521kk committed Jan 1, 2024
1 parent 17e1591 commit 216b740
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4980,11 +4980,14 @@ AC_MSG_RESULT([$with_freelists])
AC_MSG_CHECKING([for --with-c-locale-coercion])
AC_ARG_WITH(
[c-locale-coercion],
[AS_HELP_STRING([--with-c-locale-coercion], [enable C locale coercion to a UTF-8 based locale (default is yes)])])
[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)])])

if test -z "$with_c_locale_coercion"
then
with_c_locale_coercion="yes"
case $host in
*-*-mingw*) with_c_locale_coercion="no";;
*) with_c_locale_coercion="yes";;
esac
fi
if test "$with_c_locale_coercion" != "no"
then
Expand Down

0 comments on commit 216b740

Please sign in to comment.