summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-03-28 23:19:26 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-03-28 23:19:26 +0200
commitb32a0b4336a3182df4896ca207f3f30c264b0061 (patch)
tree1b4c4ac552634a81e219752ee21bfa61e2b64fc9 /checksetup.pl
parente8f93b1e5dd4a7242fd504b4a1160bc1e24a71da (diff)
downloadbugzilla-b32a0b4336a3182df4896ca207f3f30c264b0061.tar.gz
bugzilla-b32a0b4336a3182df4896ca207f3f30c264b0061.tar.xz
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 'checksetup.pl')
-rwxr-xr-xchecksetup.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 8993ff08d..a27446e0c 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -62,6 +62,12 @@ use Bugzilla::Install::Util qw(install_string get_version_and_os init_console);
# When we're running at the command line, we need to pick the right
# language before ever displaying any string.
init_console();
+# Required for displaying strings from install_string, which are always
+# in UTF-8, in every language. For other scripts, Bugzilla::init_page
+# handles this, but here we just need to assume that checksetup.pl output
+# is always UTF-8 in order for install_string to work properly in other
+# languages.
+binmode STDOUT, ':utf8';
my %switch;
GetOptions(\%switch, 'help|h|?', 'check-modules', 'no-templates|t',