summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-06-21 15:34:44 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-06-21 15:34:44 +0000
commit557142a18ecd2e95285292dc54e46edec842ecc2 (patch)
tree61903303bb450d582af818f433b143c098da10b7 /Master/tlpkg/bin
parent601c0d7354b8507ea67e0a2047490ec3aee8db79 (diff)
use LC_ALL=C with diff and comm
git-svn-id: svn://tug.org/texlive/trunk@8903 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin')
-rwxr-xr-xMaster/tlpkg/bin/place6
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/tlpkg/bin/place b/Master/tlpkg/bin/place
index 4f04681f595..1db145c34f2 100755
--- a/Master/tlpkg/bin/place
+++ b/Master/tlpkg/bin/place
@@ -114,13 +114,13 @@ if (!defined($tlpold)) {
foreach (sort @newfiles) {
`echo $_ >> $TMP/tlplace.new`;
}
- print `comm -3 $TMP/tlplace.new $TMP/tlplace.old`;
- my @difffiles = `comm -12 $TMP/tlplace.new $TMP/tlplace.old`;
+ print `LC_ALL=C comm -3 $TMP/tlplace.new $TMP/tlplace.old`;
+ my @difffiles = `LC_ALL=C comm -12 $TMP/tlplace.new $TMP/tlplace.old`;
chomp (@difffiles);
my $sum = 0;
my $diff_file = "$TMP/tlplace.diff";
unlink ($diff_file);
- my $diff_cmd = "diff --text --ignore-all-space -U 0 -s";
+ my $diff_cmd = "LC_ALL=C diff --text --strip-trailing-cr --ignore-all-space -U 0 -s";
foreach (@difffiles) {
my @foo = `$diff_cmd $M/$_ $cooked/$package/$_ | tee -a $diff_file`;
$sum += $#foo; # zero-based, so first line doesn't count.