From 71f44e682fe7b0f68d3a6a609aa5321c081c3fcc Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Thu, 1 Jul 2010 14:00:29 -0700 Subject: Bug 382398: Make checksetup.pl localized messages be output in the console's charset r=timello, a=mkanat --- Bugzilla/Install/Requirements.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Bugzilla/Install/Requirements.pm') 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. -- cgit v1.2.3-24-g4f1b