From 256cc9196cd32f002a1a682a8764ab12f4051009 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Mon, 11 Apr 2011 14:43:20 +1200 Subject: [PATCH] Bug 6085 : setting the binmode broke the files rather than fixing them Signed-off-by: Chris Cormack --- misc/translator/tmpl_process3.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/misc/translator/tmpl_process3.pl b/misc/translator/tmpl_process3.pl index 15c81aa2e9..2a12e6b54b 100755 --- a/misc/translator/tmpl_process3.pl +++ b/misc/translator/tmpl_process3.pl @@ -393,8 +393,7 @@ if ($action eq 'create') { my $targetdir = $` if $target =~ /[^\/]+$/s; mkdir_recursive($targetdir) unless -d $targetdir; print STDERR "Creating $target...\n" unless $quiet; - open( OUTPUT, ">$target" ) || die "$target: $!\n"; - binmode( OUTPUT, ":utf8" ); + open( OUTPUT, ">$target" ) || die "$target: $!\n"; text_replace( $h, *OUTPUT ); close OUTPUT; } else { -- 2.39.5