Skip to content

Commit 53e4b46

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 cf861b2 commit 53e4b46

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
@@ -5009,11 +5009,14 @@ AC_MSG_RESULT([$with_freelists])
50095009
AC_MSG_CHECKING([for --with-c-locale-coercion])
50105010
AC_ARG_WITH(
50115011
[c-locale-coercion],
5012-
[AS_HELP_STRING([--with-c-locale-coercion], [enable C locale coercion to a UTF-8 based locale (default is yes)])])
5012+
[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)])])
50135013

50145014
if test -z "$with_c_locale_coercion"
50155015
then
5016-
with_c_locale_coercion="yes"
5016+
case $host in
5017+
*-*-mingw*) with_c_locale_coercion="no";;
5018+
*) with_c_locale_coercion="yes";;
5019+
esac
50175020
fi
50185021
if test "$with_c_locale_coercion" != "no"
50195022
then

0 commit comments

Comments
 (0)