This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fb4aef
)
locale.c: use new SvPVCLEAR and constant string friendly macros
author
Yves Orton
<demerphq@gmail.com>
Wed, 19 Oct 2016 09:14:26 +0000
(11:14 +0200)
committer
Yves Orton
<demerphq@gmail.com>
Wed, 19 Oct 2016 11:28:01 +0000
(13:28 +0200)
locale.c
patch
|
blob
|
blame
|
history
diff --git
a/locale.c
b/locale.c
index
92b9e33
..
d042587
100644
(file)
--- a/
locale.c
+++ b/
locale.c
@@
-1213,8
+1213,8
@@
Perl_init_i18nl10n(pTHX_ int printwarn)
{
char **e;
for (e = environ; *e; e++) {
- if (str
nEQ(*e, "LC_", 3
)
- && str
nNE(*e, "LC_ALL=", 7
)
+ if (str
EQs(*e, "LC_"
)
+ && str
NEs(*e, "LC_ALL="
)
&& (p = strchr(*e, '=')))
PerlIO_printf(Perl_error_log, "\t%.*s = \"%s\",\n",
(int)(p - *e), *e, p + 1);