develooper Front page | perl.perl5.changes | Postings from October 2020

[Perl/perl5] b0441c: t/ Consider thread 0 alwayslocale-safe

Karl Williamson via perl5-changes
October 23, 2020 13:07
[Perl/perl5] b0441c: t/ Consider thread 0 alwayslocale-safe
Message ID:
  Branch: refs/heads/blead
  Commit: b0441c5bc62aa2ba1980c5ae151db48af58bcfcf
  Author: Karl Williamson <>
  Date:   2020-10-23 (Fri, 23 Oct 2020)

  Changed paths:
    M t/

  Log Message:
  t/ Consider thread 0 always locale-safe

Test files call this code to see if locales are enabled.  Prior to this
commit, it returned that they were disabled on builds where there are
possible races between threads.  This was to silence some rarely
occurring smoke failures.  But that had the result that such builds
didn't get locales tested at all, even if there was just a single thread
operating.  This commit changes it so that when called from other than
the main thread on such a system, it returns disabled, but enabled for
the main thread. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About