aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-01 14:00:29 -0700
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-01 14:00:29 -0700
commit71f44e682fe7b0f68d3a6a609aa5321c081c3fcc (patch)
treed904831de052af5653cf99239a51a4b14e081959 /Bugzilla.pm
parentcbbcceb2a69d48737fac00639421d53f92c61c64 (diff)
downloadbugs-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.pm')
-rw-r--r--Bugzilla.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index 2f21c6a18..eedcb85ee 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -44,7 +44,7 @@ use Bugzilla::Extension;
use Bugzilla::DB;
use Bugzilla::Install::Localconfig qw(read_localconfig);
use Bugzilla::Install::Requirements qw(OPTIONAL_MODULES);
-use Bugzilla::Install::Util;
+use Bugzilla::Install::Util qw(init_console);
use Bugzilla::Template;
use Bugzilla::User;
use Bugzilla::Error;
@@ -82,7 +82,12 @@ use constant SHUTDOWNHTML_EXIT_SILENTLY => qw(
# Note that this is a raw subroutine, not a method, so $class isn't available.
sub init_page {
- (binmode STDOUT, ':utf8') if Bugzilla->params->{'utf8'};
+ if (Bugzilla->usage_mode == USAGE_MODE_CMDLINE) {
+ init_console();
+ }
+ elsif (Bugzilla->params->{'utf8'}) {
+ binmode STDOUT, ':utf8';
+ }
if (${^TAINT}) {
# Some environment variables are not taint safe