summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-12-08 13:25:36 -0700
committerKarl Williamson <khw@cpan.org>2020-12-08 13:29:12 -0700
commitf4ed6d050b26d63e5dae73878c2b2f13757b8afe (patch)
tree053cd881f3ca6af2386dd49802e0107d5fa30357 /locale.c
parentd523eeeb193a631f11e38eb49b4af1b27534853b (diff)
downloadperl-f4ed6d050b26d63e5dae73878c2b2f13757b8afe.tar.gz
locale.c: Remove some unnecessary mutex locks
These aren't necessary as the called function has its own lock until done copying into the local structure. And these were breaking blead on Windows, as they are no longer defined. The smoke I ran included more commits beyond the breaking one, so I didn't catch it.
Diffstat (limited to 'locale.c')
-rw-r--r--locale.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/locale.c b/locale.c
index 9eb49be4a8..bee9c2e3f7 100644
--- a/locale.c
+++ b/locale.c
@@ -3039,8 +3039,6 @@ S_my_nl_langinfo(const int item, bool toggle)
case MON_5: case MON_6: case MON_7: case MON_8:
case MON_9: case MON_10: case MON_11: case MON_12:
- LOCALE_LOCK_;
-
init_tm(&tm); /* Precaution against core dumps */
tm.tm_sec = 30;
tm.tm_min = 30;
@@ -3050,7 +3048,6 @@ S_my_nl_langinfo(const int item, bool toggle)
tm.tm_mon = 0;
switch (item) {
default:
- LOCALE_UNLOCK_;
Perl_croak(aTHX_
"panic: %s: %d: switch case: %d problem",
__FILE__, __LINE__, item);
@@ -3226,8 +3223,6 @@ S_my_nl_langinfo(const int item, bool toggle)
* wday was chosen because its range is all a single digit.
* Things like tm_sec have two digits as the minimum: '00' */
- LOCALE_UNLOCK_;
-
retval = PL_langinfo_buf;
/* If to return the format, not the value, overwrite the buffer