From 878840f051e27260433ab1c20af39935aee6e649 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 25 Aug 2007 15:41:34 +0000 Subject: [PATCH] r1601: The installer wasn't running with the database in UTF8 mode (even if the config directive stated to do so). Therefore, this would break certain installations. * install/global.php: Adding a SET NAMES query * docs/changes.txt --- docs/changes.txt | 1 + install/global.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index c4309e9..35d8bd4 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -9,6 +9,7 @@ - Fixed: After mass-updating a search result set, if the search criteria were changed the user would be stuck in a "no results" error (bug://report/93) - Change: Do not show the version number on non-admin pages (bug://report/95) - Fixed: If a user has set a language that does not exist anymore, then bug notifications would fail (bug://report/97) +- Fixed: Users of UTF8 languages would experience problems after upgrading (if the $utf8 config directive as ON) because the installer wasn't running in UTF8 1.2.1 =============================== diff --git a/install/global.php b/install/global.php index 6bbc3a7..971e1de 100644 --- a/install/global.php +++ b/install/global.php @@ -51,6 +51,11 @@ define('ISSO_DB_LAYER', 'db_mysql'); $bugsys->load('db_mysql', 'db', true); $db->connect($servername, $username, $password, $database, $usepconnect); +if ($utf8) +{ + $db->query("SET NAMES utf8"); +} + // needed for API validation $bugsys->load('functions', 'funct'); -- 2.22.5