Skip to content

Commit

Permalink
hints/darwin.sh: Turn off POSIX 2008 locales
Browse files Browse the repository at this point in the history
This is failing on smokes:
http://nntp.perl.org/group/perl.perl5.porters/266341

What I've noticed in working with changes to the locale handling code
(that isn't ready for v5.38) is that querylocale() has intermittent
failures, that aren't fully solved by using a mutex, and that versions
of Darwin earlier than major 20 have other problems with the POSIX 2008
API.  These may be solved in Darwin 20 after disabling querylocale(),
but the failure rate was so infrequent that I'm unsure if it has been
fixed or just hasn't come up.  So it is safest to just disable POSIX
2008 in Darwin for 5.38.
  • Loading branch information
khwilliamson committed May 16, 2023
1 parent 77675bd commit 60d7b0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hints/darwin.sh
Expand Up @@ -357,6 +357,9 @@ EOM
esac
fi

# The OS is buggy with respect to this.
ccflags="$ccflags -DNO_POSIX_2008_LOCALE"

lddlflags="${ldflags} -bundle -undefined dynamic_lookup"
;;
esac
Expand Down

0 comments on commit 60d7b0c

Please sign in to comment.