Skip to content

Commit 00a377e

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 496b5ed commit 00a377e

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

46954695
if test -z "$with_c_locale_coercion"
46964696
then
4697-
with_c_locale_coercion="yes"
4697+
case $host in
4698+
*-*-mingw*) with_c_locale_coercion="no";;
4699+
*) with_c_locale_coercion="yes";;
4700+
esac
46984701
fi
46994702
if test "$with_c_locale_coercion" != "no"
47004703
then

0 commit comments

Comments
 (0)