Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
70e3b646
Commit
70e3b646
authored
Nov 18, 2006
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Checkin fix for Bug 280633, which didn't work when the utf8 parameter was turned on.
parent
496a78f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
Bugzilla.pm
Bugzilla.pm
+1
-0
recode.pl
contrib/recode.pl
+11
-3
No files found.
Bugzilla.pm
View file @
70e3b646
...
...
@@ -53,6 +53,7 @@ our $_request_cache = {};
use
constant
SHUTDOWNHTML_EXEMPT
=>
[
'editparams.cgi'
,
'checksetup.pl'
,
'recode.pl'
,
];
# Non-cgi scripts that should silently exit.
...
...
contrib/recode.pl
View file @
70e3b646
...
...
@@ -174,9 +174,17 @@ if (exists $switch{'overrides'}) {
my
$dbh
=
Bugzilla
->
dbh
;
# Make the database give us raw bytes.
$dbh
->
do
(
'SET character_set_results = NULL'
)
if
$dbh
->
isa
(
'Bugzilla::DB::Mysql'
);
if
(
$dbh
->
isa
(
'Bugzilla::DB::Mysql'
))
{
# Get the actual current encoding of the DB.
my
$collation_data
=
$dbh
->
selectrow_arrayref
(
"SHOW VARIABLES LIKE 'character_set_database'"
);
my
$db_charset
=
$collation_data
->
[
1
];
# Set our connection encoding to *that* encoding, so that MySQL
# correctly accepts our changes.
$dbh
->
do
(
"SET NAMES $db_charset"
);
# Make the database give us raw bytes.
$dbh
->
do
(
'SET character_set_results = NULL'
)
}
$dbh
->
begin_work
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment