]> wagnertech.de Git - kivitendo-erp.git/blobdiff - scripts/locales.pl
Bei Emacs sind die Charsets lowercase: "iso-8859-15" anstelle von "ISO-8859-15"
[kivitendo-erp.git] / scripts / locales.pl
index d156ddd03045f8a6d24319c8fc355d34b20ae978..fa787a24bfc232d10d70d4630d64511392645712 100755 (executable)
@@ -601,7 +601,9 @@ sub generate_file {
 
   open my $fh, '>', $file or die "$! : $file";
 
-  print $fh "#!/usr/bin/perl\n# -*- coding: $charset; -*-\n# vim: fenc=$charset\n\n";
+  my $emacs_charset = lc $charset;
+
+  print $fh "#!/usr/bin/perl\n# -*- coding: $emacs_charset; -*-\n# vim: fenc=$charset\n\n";
   print $fh $header, "\n" if $header;
   print $fh "$data_name = $delim[0]\n" if $data_name;