This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make t/run/locale.t survive missing locales masked by LC_ALL
authorNiko Tyni <ntyni@debian.org>
Wed, 15 Apr 2015 15:41:57 +0000 (18:41 +0300)
committerTony Cook <tony@develop-help.com>
Wed, 3 Jun 2015 01:23:06 +0000 (11:23 +1000)
commitc53481e75d6e6f7e5c3c838b3545b07a959c67cc
treedee9c30948844b9dc4dd5295cac17ad11a4e50ee
parent31ada1fbe5f99b57f19d888d2681aa42d8b87898
Make t/run/locale.t survive missing locales masked by LC_ALL

If LC_ALL is set to a valid locale but another LC_* setting like LC_CTYPE
isn't, t/run/locale.t would fail because it explicitly unsets LC_ALL,
unmasking the problem underneath. All the other tests survive such
a scenario.

While this is clearly an error in the build environment, it's easy to make
the test more robust by first clearing all the locale relevant variables.

Bug-Debian: https://bugs.debian.org/782068
t/run/locale.t