Skip to content

Commit bb2e3db

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 a5f8222 commit bb2e3db

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
@@ -4702,11 +4702,14 @@ AC_MSG_RESULT($with_freelists)
47024702
AC_MSG_CHECKING(for --with-c-locale-coercion)
47034703
AC_ARG_WITH(c-locale-coercion,
47044704
AS_HELP_STRING([--with-c-locale-coercion],
4705-
[enable C locale coercion to a UTF-8 based locale (default is yes)]))
4705+
[enable C locale coercion to a UTF-8 based locale (default is yes on Unix, no on Windows)]))
47064706

47074707
if test -z "$with_c_locale_coercion"
47084708
then
4709-
with_c_locale_coercion="yes"
4709+
case $host in
4710+
*-*-mingw*) with_c_locale_coercion="no";;
4711+
*) with_c_locale_coercion="yes";;
4712+
esac
47104713
fi
47114714
if test "$with_c_locale_coercion" != "no"
47124715
then

0 commit comments

Comments
 (0)