Author: mmu_man
Date: Thu Apr 12 11:42:02 2012
New Revision: 13857
URL:
http://source.netsurf-browser.org?rev=13857&view=rev
Log:
Make sure we use the default locale before parsing output of a localized program.
This fixes generating the testament here.
Modified:
trunk/netsurf/utils/svn-testament.pl
Modified: trunk/netsurf/utils/svn-testament.pl
URL:
http://source.netsurf-browser.org/trunk/netsurf/utils/svn-testament.pl?re...
==============================================================================
--- trunk/netsurf/utils/svn-testament.pl (original)
+++ trunk/netsurf/utils/svn-testament.pl Thu Apr 12 11:42:02 2012
@@ -61,7 +61,7 @@
}
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 @@
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"; }