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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
90ae4269
Commit
90ae4269
authored
Feb 20, 2009
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 431201: recode.pl crash when trying to convert 2.16 database to 3.0.3 schema
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
parent
4192ccfd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
recode.pl
contrib/recode.pl
+6
-10
No files found.
contrib/recode.pl
View file @
90ae4269
...
...
@@ -149,16 +149,9 @@ if ($switch{'guess'}) {
my
$root
=
ROOT_USER
;
print
STDERR
<<EOT;
Using --guess requires that Encode::Detect be installed. To install
Encode::Detect,
first download it from
:
Encode::Detect,
run the following command
:
http://search.cpan.org/dist/Encode-Detect/
Then, unpack it into its own directory and run the following commands
in that directory, as $root:
./Build.PL
./Build
./Build install
$^X install-module.pl Encode::Detect
EOT
exit
;
...
...
@@ -248,7 +241,10 @@ foreach my $table ($dbh->bz_table_list_real) {
while
(
my
@result
=
$sth
->
fetchrow_array
)
{
my
$data
=
shift
@result
;
my
$digest
=
md5_base64
(
$data
);
# Wide characters cause md5_base64() to die.
my
$digest_data
=
utf8::
is_utf8
(
$data
)
?
Encode::
encode_utf8
(
$data
)
:
$data
;
my
$digest
=
md5_base64
(
$digest_data
);
my
@primary_keys
=
reverse
split
(
','
,
$pk
);
# We copy the array so that we can pop things from it without
...
...
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