Failed to debug with utf8 chars
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
New
|
Undecided
|
Unassigned |
Bug Description
Database and tables are utf8 compatible, and there are record different on master and slave, and it contains utf8 chars. (sample master: "Árvíztűrő tükörfúrógép", slave: "arvizturo tukorfurogep")
If i run pt-table-sync with --charset utf8 parameters, and debug is enabled (PTDEBUG=1), perl stop with following error:
# ChangeHandler:3580 18123 Fetching data on dbh DBI::db=
# ChangeHandler:3432 18123 Wide character in print at /usr/bin/
My quick fix: setup stderr to utf8 compatible, i put this to the pt-table-sync begin:
use utf8;
binmode(STDERR, ":utf8");
Hi,
Thanks for reporting the error AND the solution.
If you like, you can submit the patch via a new pull request to the Github repo and I can test it an merge it and I will add the fix with your name in the changelog.
If you are willing to do that, please read the contributing guide. There you will find information about how to contribute with code.
Regards