Skip to content

Commit 48584d0

Browse files
committed
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 77b61bd commit 48584d0

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
@@ -3884,11 +3884,14 @@ AC_MSG_RESULT($with_pymalloc)
38843884
AC_MSG_CHECKING(for --with-c-locale-coercion)
38853885
AC_ARG_WITH(c-locale-coercion,
38863886
AS_HELP_STRING([--with-c-locale-coercion],
3887-
[enable C locale coercion to a UTF-8 based locale (default is yes)]))
3887+
[enable C locale coercion to a UTF-8 based locale (default is yes on Unix, no on Windows)]))
38883888

38893889
if test -z "$with_c_locale_coercion"
38903890
then
3891-
with_c_locale_coercion="yes"
3891+
case $host in
3892+
*-*-mingw*) with_c_locale_coercion="no";;
3893+
*) with_c_locale_coercion="yes";;
3894+
esac
38923895
fi
38933896
if test "$with_c_locale_coercion" != "no"
38943897
then

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy