From 761ae5de8e84ffd70489260364db5789ec135b55 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 14 Sep 2006 13:57:29 +0000 Subject: Bug 352608: Make checksetup more localizable Patch By Max Kanat-Alexander (module owner) a=myk --- checksetup.pl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'checksetup.pl') diff --git a/checksetup.pl b/checksetup.pl index d38fb5441..d8e920a6d 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -47,6 +47,7 @@ use 5.008; use File::Basename; use Getopt::Long qw(:config bundling); use Pod::Usage; +use POSIX qw(setlocale LC_CTYPE); use Safe; BEGIN { chdir dirname($0); } @@ -130,6 +131,10 @@ require Bugzilla::Install; Bugzilla->usage_mode(USAGE_MODE_CMDLINE); +# When we're running at the command line, we need to pick the right +# language before ever creating a template object. +$ENV{'HTTP_ACCEPT_LANGUAGE'} ||= setlocale(LC_CTYPE); + ########################################################################### # Check and update --LOCAL-- configuration ########################################################################### -- cgit v1.2.3-24-g4f1b