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 20, 2023
1 parent a69c8c7 commit a5689dd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hints/freebsd.sh
Expand Up @@ -327,9 +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 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'
Expand Down

0 comments on commit a5689dd

Please sign in to comment.