--- /usr/local/lib/perl5/site_perl/5.8.9/XML/Dumper.pm.orig 2009-11-25 13:58:55.000000000 -0600
+++ /usr/local/lib/perl5/site_perl/5.8.9/XML/Dumper.pm 2009-11-25 13:58:33.000000000 -0600
@@ -570,6 +570,7 @@
my $item_tree = $tree->[$i+1][$j+1];
if( exists $item_tree->[0]{ key } ) {
my $key = $item_tree->[ 0 ]{ key };
+ utf8::encode($key); # if !utf8::is_utf8($item); # rt52071
if( exists $item_tree->[ 0 ]{ 'defined' } ) {
if( $item_tree->[ 0 ]{ 'defined' } =~ /false/ ) {
$ref->{ $key } = undef;
@@ -619,6 +620,7 @@
my $item_tree = $tree->[$i+1][$j+1];
if( exists $item_tree->[0]{ key } ) {
my $key = $item_tree->[0]{ key };
+ utf8::encode($key); # if !utf8::is_utf8($item); # rt52071
if( exists $item_tree->[ 0 ]{ 'defined' } ) {
if( $item_tree->[ 0 ]{ 'defined' } =~ /false/ ) {
$ref->[ $key ] = undef;
@@ -658,6 +660,7 @@
if( /^0$/ ) { # SIMPLE SCALAR
# ----------------------------------------
$item = $tree->[$i + 1];
+ utf8::encode($item); # if !utf8::is_utf8($item); # rt52071
}
}
}