]> wagnertech.de Git - mfinanz.git/blobdiff - scripts/dbupgrade2_tool.pl
Syntaxkompatibilität zu Python 3
[mfinanz.git] / scripts / dbupgrade2_tool.pl
index f4a7bb7e76ba4aef6a6644e39358f99bbf4e8764..45e455652708c9b026e58c869d06cfd44bb925da 100755 (executable)
@@ -2,7 +2,7 @@
 
 BEGIN {
   if (! -d "bin" || ! -d "SL") {
-    print("This tool must be run from the Lx-Office ERP base directory.\n");
+    print("This tool must be run from the kivitendo ERP base directory.\n");
     exit(1);
   }
 
@@ -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";