pt-archiver: Wide character in print

Bug #940253 reported by pservit
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Invalid
Undecided
Brian Fraser

Bug Description

When archiving table with text field error occured:

Wide character in print at /usr/local/bin/pt-archiver line 4010.

adding binmode $archive_fh, ":utf8"; fixes it

FreeBSD 8.2-RELEASE-p1 amd64
perl, v5.10.1 (*) built for amd64-freebsd-thread-multi

Tags: pt-archiver
pservit (pservit)
tags: added: pt-archiver
Revision history for this message
Baron Schwartz (baron-xaprb) wrote :

Brian, can you triage this one?

Changed in percona-toolkit:
assignee: nobody → Brian Fraser (fraserbn)
Revision history for this message
Brian Fraser (fraserbn) wrote :

Hm, well, hust blindly adding :utf8 is going to break things for anyone using an old charset. Particular, most Unices (but Mac) don't enforce encoding, and neither does MySQL, so this is bound to be troublesome.

For the time being, anyone getting this should probably be running the tool with --charset utf8, or setting 'PERL_UNICODE=SAD' in their environment, or failing that as
$ perl -CSAD pt-archiver ...
or
$ perl -Mopen=:utf8 pt-archiver ...

I'm not really familiar with pt-archiver, so I'll take a look soonish and see if it makes sense to turn UTF8 on automagically.

Changed in percona-toolkit:
status: New → In Progress
Brian Fraser (fraserbn)
Changed in percona-toolkit:
status: In Progress → Invalid
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PT-940

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.