From 480282085f0039dcefa12a41a42bd97a61b3b264 Mon Sep 17 00:00:00 2001 From: François Revel Date: Thu, 12 Apr 2012 16:42:02 +0000 Subject: Make sure we use the default locale before parsing output of a localized program. This fixes generating the testament here. svn path=/trunk/netsurf/; revision=13857 --- utils/svn-testament.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/svn-testament.pl b/utils/svn-testament.pl index 96bbd7c44..50f8ae8eb 100755 --- a/utils/svn-testament.pl +++ b/utils/svn-testament.pl @@ -61,7 +61,7 @@ sub gather_output { } if ( $svn_present ) { - foreach my $line (split(/\n/, gather_output("svn info $root"))) { + foreach my $line (split(/\n/, gather_output("LC_ALL=C svn info $root"))) { my ($key, $value) = split(/: /, $line, 2); $key = lc($key); $key =~ s/\s+//g; @@ -76,7 +76,7 @@ if ( $svn_present ) { my %svnstatus; # The SVN status output if ( $svn_present ) { - foreach my $line (split(/\n/, gather_output("svn status $root"))) { + foreach my $line (split(/\n/, gather_output("LC_ALL=C svn status $root"))) { chomp $line; my $op = substr($line, 0, 1); if ($op eq ' ' && substr($line, 1, 1) ne ' ') { $op = "p"; } -- cgit v1.2.3