From 8907d813767b9b15426826693762fa7542afedc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 11 Nov 2014 14:30:08 +0100 Subject: [PATCH] Write UTF-8-encoded chunk if Locale::Encode is not available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CPAN RT#100268 Signed-off-by: Petr Písař --- lib/ExtUtils/MakeMaker.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ExtUtils/MakeMaker.pm b/lib/ExtUtils/MakeMaker.pm index 86e6d83..248e8f4 100644 --- a/lib/ExtUtils/MakeMaker.pm +++ b/lib/ExtUtils/MakeMaker.pm @@ -1195,11 +1195,11 @@ sub flush { binmode $fh, ':encoding(locale)' if $CAN_DECODE; for my $chunk (@{$self->{RESULT}}) { - my $to_write = "$chunk\n"; + my $to_write = "$chunk"; if (!$CAN_DECODE && $] > 5.008) { utf8::encode $to_write; } - print $fh "$chunk\n" + print $fh "$to_write\n" or die "Can't write to MakeMaker.tmp: $!"; } -- 1.9.3