From 0e36f86820fe6ed8b4d187919283b19db919aec5 Mon Sep 17 00:00:00 2001 From: "rob_strong%exchangecode.com" Date: Wed, 2 Apr 2008 19:06:27 +0000 Subject: [PATCH] Bug 409333 - Corrupted string of being installed component shown during installation. r=bsmedberg, blocking-firefox3=beltzner git-svn-id: svn://10.0.0.236/trunk@249007 18797224-902f-48f8-a5cc-f745e15eee43 --- .../mozapps/installer/windows/nsis/preprocess-locale.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/toolkit/mozapps/installer/windows/nsis/preprocess-locale.pl b/mozilla/toolkit/mozapps/installer/windows/nsis/preprocess-locale.pl index fbf819e2a1f..1c50c73a408 100755 --- a/mozilla/toolkit/mozapps/installer/windows/nsis/preprocess-locale.pl +++ b/mozilla/toolkit/mozapps/installer/windows/nsis/preprocess-locale.pl @@ -103,6 +103,7 @@ while( $line = ) { $value =~ s/\s+$//; # trim whitespace from the end of the string $value =~ s/^"(.*)"$/$1/g; # remove " at the beginning and end of the value $value =~ s/(")/\$\\$1/g; # prefix " with $\ + $value =~ s/…/.../g; # replace … (unicode ellipsis) with ... print outfile "LangString ^@values[0] $langID \"$value\"\r\n"; $lnum++; } @@ -134,6 +135,7 @@ while( $line = ) { $value =~ s/(")/\$\\$1/g; # prefix " with $\ $value =~ s/(\\n)/\\r$1/g; # insert \\r before each occurence of \\n $value =~ s/(\\r)\\r/$1/g; # replace all ocurrences of \\r\\r with \\r + $value =~ s/…/.../g; # replace … (unicode ellipsis) with ... print outfile "!define @values[0] \"$value\"\r\n"; $lnum++; } @@ -162,6 +164,7 @@ while( $line = ) { $string =~ s/(\\n)/\\r$1/g; # insert \\r before each occurence of \\n $string =~ s/(\\r)\\r/$1/g; # replace all ocurrences of \\r\\r with \\r $string =~ s/(\\[rn])/\$$1/g; # prefix all occurences of \\r and \\n with $ + $string =~ s/…/.../g; # replace … (unicode ellipsis) with ... print outfile "LangString @values[0] $langID \"$string\"\r\n"; $lnum++; }