diff options
| author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-03-28 14:19:26 -0700 |
|---|---|---|
| committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-03-28 14:19:26 -0700 |
| commit | b32a0b4336a3182df4896ca207f3f30c264b0061 (patch) | |
| tree | 1b4c4ac552634a81e219752ee21bfa61e2b64fc9 /Bugzilla/Install | |
| parent | e8f93b1e5dd4a7242fd504b4a1160bc1e24a71da (diff) | |
| download | bugs-b32a0b4336a3182df4896ca207f3f30c264b0061.tar bugs-b32a0b4336a3182df4896ca207f3f30c264b0061.tar.gz bugs-b32a0b4336a3182df4896ca207f3f30c264b0061.tar.bz2 bugs-b32a0b4336a3182df4896ca207f3f30c264b0061.tar.xz bugs-b32a0b4336a3182df4896ca207f3f30c264b0061.zip | |
Bug 550765: Unicode strings from install_string were showing up as garbage
when used in the web interface
r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Install')
| -rw-r--r-- | Bugzilla/Install/Util.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/Install/Util.pm b/Bugzilla/Install/Util.pm index 233e08e19..6621a7a41 100644 --- a/Bugzilla/Install/Util.pm +++ b/Bugzilla/Install/Util.pm @@ -265,6 +265,8 @@ sub install_string { die "No language defines the string '$string_id'" if !defined $string_template; + utf8::decode($string_template) if !utf8::is_utf8($string_template); + $vars ||= {}; my @replace_keys = keys %$vars; foreach my $key (@replace_keys) { @@ -281,7 +283,7 @@ sub install_string { } $string_template =~ s/\Q##$key##\E/$replacement/g; } - + return $string_template; } |
