If you set the locale wrong, it can cause Test::Script tests to fail. There are a couple of ways to address this:
- Do nothing, accept we will get a few failed test results from cpantesters
- Detect error output from an empty Perl script and refuse to install. Diagnostic that we do not support broken configurations. This saves getting the cpantester failures.
- Detect error output from an empty Perl script and try unsetting
LANG and LC_COLLATE, LC_ALL, etc. This will let the tests pass (at least in some subset of broken environments), but it might allow dists that depend on this one to fail instead.
None of these options is all that appetizing, so I think we might end up going with number 1.