fix unicode handling when writing Makefile
Graham Knop [Sat, 21 Sep 2013 04:16:24 +0000 (00:16 -0400)]
lib/Distar.pm

index afe458a..817311c 100644 (file)
@@ -156,6 +156,12 @@ sub _clone {
 
     Distar::write_manifest_skip($self)
       unless $maniskip_tracked;
+
+    my @results = @{$self->{RESULT}};
+    if ($MM_VER < 7) {
+      utf8::encode($_) for @results;
+    }
+    local $self->{RESULT} = \@results;
     $self->SUPER::flush(@_);
   }