Skip to content

Commit

Permalink
XXX prob drop; done before anything so no races
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Apr 29, 2021
1 parent 88da426 commit d8a739d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions locale.c
Expand Up @@ -5087,6 +5087,9 @@ Perl_init_i18nl10n(pTHX_ int printwarn)
* form qr/ ^ LC_ [A-Z]+ = /x, except LC_ALL which was
* already handled above. These are assumed to be locale
* settings. Output them and their values. */

ENV_READ_LOCK;

for (e = environ; *e; e++) {
const STRLEN prefix_len = sizeof("LC_") - 1;
STRLEN uppers_len;
Expand All @@ -5102,6 +5105,8 @@ Perl_init_i18nl10n(pTHX_ int printwarn)
*e + prefix_len + uppers_len + 1);
}
}

ENV_READ_UNLOCK;
}

# else
Expand Down

0 comments on commit d8a739d

Please sign in to comment.