This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
t/loc_tools.pl: find_locales() Don't destroy callers ENV
authorKarl Williamson <public@khwilliamson.com>
Wed, 29 Jan 2014 16:51:38 +0000 (09:51 -0700)
committerKarl Williamson <public@khwilliamson.com>
Wed, 29 Jan 2014 17:23:14 +0000 (10:23 -0700)
commit8b76dc1d20b9a57382173ce08c4ad10cf5acb5ef
treef1653f91dbcc78f446741b0dfe85404e6ed45b0f
parent667eac0cd75b24849e65753cb51d9a6b8111c052
t/loc_tools.pl: find_locales() Don't destroy callers ENV

This code was recently moved from lib/locale.t to a new file essentially
unchanged, so that it could be common code.  It deletes several
environment variables, such as PATH,  to avoid interference with going
out and looking at the locales.  In lib/locale.t, those environment
variables are not needed again, but that isn't true of all the callers.
The solution is simply to localize the removal.

This should fix [perl #121106], but there remain test failures there.
t/loc_tools.pl