pgupgrade_tool --create: Encoding besser respektieren.
authorSven Schöling <s.schoeling@linet-services.de>
Thu, 8 Nov 2012 11:00:16 +0000 (12:00 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 8 Nov 2012 11:00:16 +0000 (12:00 +0100)
scripts/dbupgrade2_tool.pl

index f4a7bb7..ba13e3f 100755 (executable)
@@ -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";