summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Install/Requirements.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-01 23:00:29 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-01 23:00:29 +0200
commit71f44e682fe7b0f68d3a6a609aa5321c081c3fcc (patch)
treed904831de052af5653cf99239a51a4b14e081959 /Bugzilla/Install/Requirements.pm
parentcbbcceb2a69d48737fac00639421d53f92c61c64 (diff)
downloadbugzilla-71f44e682fe7b0f68d3a6a609aa5321c081c3fcc.tar.gz
bugzilla-71f44e682fe7b0f68d3a6a609aa5321c081c3fcc.tar.xz
Bug 382398: Make checksetup.pl localized messages be output in the
console's charset r=timello, a=mkanat
Diffstat (limited to 'Bugzilla/Install/Requirements.pm')
-rw-r--r--Bugzilla/Install/Requirements.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/Install/Requirements.pm b/Bugzilla/Install/Requirements.pm
index 00077a5a9..12a9c20c5 100644
--- a/Bugzilla/Install/Requirements.pm
+++ b/Bugzilla/Install/Requirements.pm
@@ -541,6 +541,10 @@ sub have_vers {
my $wanted = $params->{version};
eval "require $module;";
+ # Don't let loading a module change the output-encoding of STDOUT
+ # or STDERR. (CGI.pm tries to set "binmode" on these file handles when
+ # it's loaded, and other modules may do the same in the future.)
+ Bugzilla::Install::Util::set_output_encoding();
# VERSION is provided by UNIVERSAL::, and can be called even if
# the module isn't loaded.