[Koha-patches] [PATCH] Bug 6085 : setting the binmode broke the files rather than fixing them

Chris Cormack chrisc at catalyst.net.nz
Mon Apr 11 04:43:20 CEST 2011


---
 misc/translator/tmpl_process3.pl |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/misc/translator/tmpl_process3.pl b/misc/translator/tmpl_process3.pl
index 15c81aa..2a12e6b 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 {
-- 
1.5.6.5



More information about the Koha-patches mailing list