Skip to content

Commit c93600f

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 #36
1 parent a0f7713 commit c93600f

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
@@ -4694,11 +4694,14 @@ AC_MSG_RESULT($with_freelists)
46944694
AC_MSG_CHECKING(for --with-c-locale-coercion)
46954695
AC_ARG_WITH(c-locale-coercion,
46964696
AS_HELP_STRING([--with-c-locale-coercion],
4697-
[enable C locale coercion to a UTF-8 based locale (default is yes)]))
4697+
[enable C locale coercion to a UTF-8 based locale (default is yes on Unix, no on Windows)]))
46984698

46994699
if test -z "$with_c_locale_coercion"
47004700
then
4701-
with_c_locale_coercion="yes"
4701+
case $host in
4702+
*-*-mingw*) with_c_locale_coercion="no";;
4703+
*) with_c_locale_coercion="yes";;
4704+
esac
47024705
fi
47034706
if test "$with_c_locale_coercion" != "no"
47044707
then

0 commit comments

Comments
 (0)