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 13, 2023
1 parent 14eba27 commit e5c4a36
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions hints/freebsd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,11 @@ 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 ]
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 \) ]
then
d_uselocale='undef'
fi
Expand Down Expand Up @@ -370,7 +371,7 @@ esac

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

# See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265950
d_duplocale='undef'
#d_duplocale='undef'

0 comments on commit e5c4a36

Please sign in to comment.