From: Sven Schöling Date: Thu, 8 Nov 2012 11:00:16 +0000 (+0100) Subject: pgupgrade_tool --create: Encoding besser respektieren. X-Git-Tag: release-3.0.0beta1~25^2~3 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=30e67fae37b3738b33ddaadb05fbc5db14c569d2;p=kivitendo-erp.git pgupgrade_tool --create: Encoding besser respektieren. --- diff --git a/scripts/dbupgrade2_tool.pl b/scripts/dbupgrade2_tool.pl index f4a7bb7e7..ba13e3f70 100755 --- a/scripts/dbupgrade2_tool.pl +++ b/scripts/dbupgrade2_tool.pl @@ -263,7 +263,7 @@ sub create_upgrade { die "file '$full_filename' already exists, aborting" if -f $full_filename; - open my $fh, ">:utf8", $full_filename or die "can't open $full_filename"; + open my $fh, ">:encoding($encoding)", $full_filename or die "can't open $full_filename"; print $fh "$comment \@tag: $filename\n"; print $fh "$comment \@description: $description\n"; print $fh "$comment \@depends: @depends\n";