forked from rurban/Filter
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
final (?) fix for locale problem (RT #41285)
Instead of testing the value of the env variables, use POSIX::setlocale to get the effective value of the LC_CTYPE locale (the only one effecting tr operation). For the workaround on top of the script, add also LC_CTYPE to the list of env variables explicitely set to C. Also, setting the env variables must happen in a BEGIN{} block, otherwise things are too late.
- Loading branch information
Showing
2 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters