fix LC_ALL and LC_CTYPE when set with conflicting values

This commit is contained in:
Yang Tse 2009-05-12 11:24:29 +00:00
parent 611b3584d6
commit f882a63cba
1 changed files with 2 additions and 1 deletions

View File

@ -166,7 +166,8 @@ if (($^O eq 'MSWin32') &&
$confsuffix = '-win32';
}
$ENV{LC_ALL}="C" if (($ENV{LC_ALL}) && ($ENV{LC_ALL} !~ /^C$/));
$ENV{LC_CTYPE}="C" if (($ENV{LC_CTYPE}) && ($ENV{LC_CTYPE} !~ /^C$/));
$ENV{LANG}="C";
sub rmtree($) {