Skip to content

Commit

Permalink
Enable thread-safe locales on some freebsd versions
Browse files Browse the repository at this point in the history
This had been disabled in the hints file due to bugs, which perl now
works around, so reenable (and reformat some lines for clarity)
  • Loading branch information
khwilliamson committed Nov 22, 2023
1 parent 059684a commit 8a14fe4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions hints/freebsd.sh
Expand Up @@ -327,13 +327,15 @@ d_printf_format_null='undef'
# Experiments have shown that this doesn't fully work. The first kernel we know it works is 1200056

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 ] # But other bugs remain; see below
then
d_uselocale='undef'
fi
#if [ $FREEBSD_KERNEL_VERSION -lt 1003507 \
# -o \( $FREEBSD_KERNEL_VERSION -ge 1100000 \
# -a $FREEBSD_KERNEL_VERSION -lt 1100502 \) \
# -o \( $FREEBSD_KERNEL_VERSION -ge 1200000 \
# -a $FREEBSD_KERNEL_VERSION -lt 1200004 \) ]
#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"
Expand Down

0 comments on commit 8a14fe4

Please sign in to comment.