diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-07-01 14:00:29 -0700 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-07-01 14:00:29 -0700 |
commit | 71f44e682fe7b0f68d3a6a609aa5321c081c3fcc (patch) | |
tree | d904831de052af5653cf99239a51a4b14e081959 /Bugzilla/Install/Requirements.pm | |
parent | cbbcceb2a69d48737fac00639421d53f92c61c64 (diff) | |
download | bugs-71f44e682fe7b0f68d3a6a609aa5321c081c3fcc.tar bugs-71f44e682fe7b0f68d3a6a609aa5321c081c3fcc.tar.gz bugs-71f44e682fe7b0f68d3a6a609aa5321c081c3fcc.tar.bz2 bugs-71f44e682fe7b0f68d3a6a609aa5321c081c3fcc.tar.xz bugs-71f44e682fe7b0f68d3a6a609aa5321c081c3fcc.zip |
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.pm | 4 |
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. |