Skip to content

Commit

Permalink
Revert "XXX try reverting: locale.c: Lock around querylocale"
Browse files Browse the repository at this point in the history
This reverts commit 899565f1db40eb12fba5733b20cd63362d7e5b5f.
  • Loading branch information
khwilliamson committed May 6, 2023
1 parent e73d06a commit e2890d7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions locale.c
Expand Up @@ -1362,15 +1362,8 @@ S_querylocale_2008_i(pTHX_ const unsigned int index)
nl_langinfo_l(_NL_LOCALE_NAME(categories[index]),
cur_obj));
# else
/* Sadly, querylocale() on some systems isn't
thread-safe, so have to lock. If someone experimented on a
given platform to determine that it is safe there, there could
be something like '-Accflags=-DTHREAD_SAFE_QUERYLOCALE' set in a
hints file to circumvent this. */
gwLOCALE_LOCK;
retval = mortalized_pv_copy(querylocale(category_masks[index],
cur_obj));
gwLOCALE_UNLOCK;
# endif

}
Expand Down

0 comments on commit e2890d7

Please sign in to comment.