Skip to content

Commit

Permalink
Don't try to use POSIX 2008 locale API on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Nov 13, 2023
1 parent a15d3a0 commit 9cbc12c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions hints/freebsd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,14 @@ FREEBSD_KERNEL_VERSION=`uname -U`
#if [ $FREEBSD_KERNEL_VERSION -lt 1003507 ] || \
# [ $FREEBSD_KERNEL_VERSION -ge 1100000 ] && [ $FREEBSD_KERNEL_VERSION -lt 1100502 ] || \
# [ $FREEBSD_KERNEL_VERSION -ge 1200000 ] && [ $FREEBSD_KERNEL_VERSION -lt 1200004 ]
if [ $FREEBSD_KERNEL_VERSION -lt 1200056 ]
if [ $FREEBSD_KERNEL_VERSION -lt 1200056 ] # But other bugs remain; see below
then
d_uselocale='undef'
fi

# See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265950
ccflags="${ccflags} -DNO_POSIX_2008_LOCALE"

# https://github.com/Perl/perl5/issues/15984
# Reported in 11.0-CURRENT with g++-4.8.5:
# If using g++, the Configure scan for dlopen() fails.
Expand Down Expand Up @@ -370,7 +373,6 @@ esac

# This function on this box has weird behavior. See
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255646
d_querylocale='undef'

# See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265950
d_duplocale='undef'
# This has allegedly been fixed, but we can't be sure because of
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265950
#d_querylocale='undef'

0 comments on commit 9cbc12c

Please sign in to comment.