diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-08-16 17:42:00 -0700 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-08-16 17:42:00 -0700 |
commit | c8abebcd41eccf920ab0aba32d4c0a494dc23897 (patch) | |
tree | 98012e8e92b80fad7ffac0dec38232a3baa19883 /Bugzilla/Install | |
parent | Bug 678357: Fix 'limit' parameter in the saved searches results (diff) | |
download | bugzilla-c8abebcd41eccf920ab0aba32d4c0a494dc23897.tar.gz bugzilla-c8abebcd41eccf920ab0aba32d4c0a494dc23897.tar.bz2 bugzilla-c8abebcd41eccf920ab0aba32d4c0a494dc23897.zip |
Bug 655472: Print out localconfig as UTF-8 so we don't mangle UTF-8 comments.
r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Install')
-rw-r--r-- | Bugzilla/Install/Localconfig.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/Install/Localconfig.pm b/Bugzilla/Install/Localconfig.pm index 3ce12207e..1ee7aca67 100644 --- a/Bugzilla/Install/Localconfig.pm +++ b/Bugzilla/Install/Localconfig.pm @@ -245,7 +245,8 @@ sub update_localconfig { # Move any custom or old variables into a separate file. if (scalar @old_vars) { my $filename_old = "$filename.old"; - open(my $old_file, ">>$filename_old") || die "$filename_old: $!"; + open(my $old_file, ">>:utf8", $filename_old) + or die "$filename_old: $!"; local $Data::Dumper::Purity = 1; foreach my $var (@old_vars) { print $old_file Data::Dumper->Dump([$localconfig->{$var}], @@ -259,7 +260,7 @@ sub update_localconfig { } # Re-write localconfig - open(my $fh, ">$filename") || die "$filename: $!"; + open(my $fh, ">:utf8", $filename) or die "$filename: $!"; foreach my $var (LOCALCONFIG_VARS) { my $name = $var->{name}; my $desc = install_string("localconfig_$name", { root => ROOT_USER }); |