Comment 3 for bug 1127450

Revision history for this message
Alex Geis (ageis) wrote : Re: pt-archiver wide character

couldn't edit and looks like there was a line in the 2.1.8 build on my vol.. better diff:

# diff -u /usr/local/bin/pt-archiver /usr/local/bin/pt-archiver.1

--- /usr/local/bin/pt-archiver 2013-03-28 06:11:27.143479965 -0400
+++ /usr/local/bin/pt-archiver.1 2013-03-28 06:03:48.391462519 -0400
@@ -5740,6 +5740,7 @@
       require File::Temp;
       $bulkins_file = File::Temp->new( SUFFIX => 'pt-archiver' )
          or die "Cannot open temp file: $OS_ERROR\n";
+ binmode($bulkins_file,":utf8");
    }

    # This row is the first row fetched from each 'chunk'.
@@ -5966,7 +5967,8 @@
          if ( $o->get('bulk-insert') ) {
             $bulkins_file = File::Temp->new( SUFFIX => 'pt-archiver' )
                or die "Cannot open temp file: $OS_ERROR\n";

+ binmode($bulkins_file,":utf8");
    }
       } # no next row (do bulk operations)
       else {
          PTDEBUG && _d('Got another row in this chunk');