From: Graham Knop Date: Sat, 21 Sep 2013 04:16:24 +0000 (-0400) Subject: fix unicode handling when writing Makefile X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b2ec6b47864b20bf895cf186390a1432cbc544ad;p=p5sagit%2FDistar.git fix unicode handling when writing Makefile --- diff --git a/lib/Distar.pm b/lib/Distar.pm index afe458a..817311c 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -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(@_); }