Browse Source

Bug 17600: Fix POSIX imports

it fixes xgettext and (maybe) friends

[12:22:29] Error: Command failed: misc/translator/xgettext.pl --charset=UTF-8 -s -o /tmp/koha-Jaa9rf/Koha-marc-NORMARC.pot -f /tmp/koha-Jaa9rf/files
/tmp/koha-Jaa9rf/Koha-marc-NORMARC.pot at misc/translator/xgettext.pl line 387.
Use of uninitialized value in subroutine entry at misc/translator/xgettext.pl line 388.
Argument ">:encoding(utf-8)" isn't numeric in subroutine entry at misc/translator/xgettext.pl line 388.
Argument "/tmp/koha-Jaa9rf/Koha-marc-NORMARC.pot" isn't numeric in subroutine entry at misc/translator/xgettext.pl line 388.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.11.x
Jonathan Druart 3 years ago
parent
commit
903f50b6f0
  1. 2
      labels/label-edit-layout.pl
  2. 2
      misc/bin/connexion_import_daemon.pl
  3. 2
      misc/cronjobs/rss/rss.pl
  4. 2
      misc/migration_tools/22_to_30/export_Authorities.pl
  5. 2
      misc/migration_tools/22_to_30/export_Authorities_xml.pl
  6. 2
      misc/translator/xgettext.pl

2
labels/label-edit-layout.pl

@ -21,7 +21,7 @@
use Modern::Perl; use Modern::Perl;
use CGI qw ( -utf8 ); use CGI qw ( -utf8 );
use POSIX qw( exit sprintf ); use POSIX;
use C4::Auth qw( get_template_and_user ); use C4::Auth qw( get_template_and_user );
use C4::Output qw( output_html_with_http_headers ); use C4::Output qw( output_html_with_http_headers );

2
misc/bin/connexion_import_daemon.pl

@ -90,7 +90,7 @@ use Carp qw( croak );
use IO::Socket::INET qw( SOCK_STREAM ); use IO::Socket::INET qw( SOCK_STREAM );
# use IO::Socket::IP; # use IO::Socket::IP;
use IO::Select; use IO::Select;
use POSIX qw( close exit fork localtime open printf sprintf ); use POSIX;
use HTTP::Status qw( HTTP_FORBIDDEN HTTP_UNAUTHORIZED ); use HTTP::Status qw( HTTP_FORBIDDEN HTTP_UNAUTHORIZED );
use strict; use strict;
use warnings; use warnings;

2
misc/cronjobs/rss/rss.pl

@ -31,7 +31,7 @@ use Template;
use Koha::Script -cron; use Koha::Script -cron;
use C4::Context; use C4::Context;
use POSIX qw( close localtime open strftime ); use POSIX;
my $dbh = C4::Context->dbh; my $dbh = C4::Context->dbh;
my $file = $ARGV[0]; my $file = $ARGV[0];

2
misc/migration_tools/22_to_30/export_Authorities.pl

@ -10,7 +10,7 @@ use C4::Context;
#use MARC::File::XML(BinaryEncoding=>"utf8"); #use MARC::File::XML(BinaryEncoding=>"utf8");
#use MARC::File::USMARC; #use MARC::File::USMARC;
use C4::AuthoritiesMarc; use C4::AuthoritiesMarc;
use POSIX qw( close localtime sprintf time ); use POSIX;
#MARC::File::XML::default_record_format("UNIMARCAUTH"); #MARC::File::XML::default_record_format("UNIMARCAUTH");
my $dbh = C4::Context->dbh; my $dbh = C4::Context->dbh;
my $rq= $dbh->prepare(qq| my $rq= $dbh->prepare(qq|

2
misc/migration_tools/22_to_30/export_Authorities_xml.pl

@ -9,7 +9,7 @@ BEGIN {
use C4::Context; use C4::Context;
use MARC::File::XML(BinaryEncoding=>"utf8"); use MARC::File::XML(BinaryEncoding=>"utf8");
use C4::AuthoritiesMarc; use C4::AuthoritiesMarc;
use POSIX qw( close localtime open sprintf time ); use POSIX;
MARC::File::XML::default_record_format("UNIMARCAUTH"); MARC::File::XML::default_record_format("UNIMARCAUTH");
my $dbh = C4::Context->dbh; my $dbh = C4::Context->dbh;
my $rq= $dbh->prepare(qq| my $rq= $dbh->prepare(qq|

2
misc/translator/xgettext.pl

@ -27,7 +27,7 @@ use lib $FindBin::Bin;
use strict; use strict;
use warnings; use warnings;
use Getopt::Long qw( GetOptions ); use Getopt::Long qw( GetOptions );
use POSIX qw( close exit localtime open printf time ); use POSIX;
use Locale::PO; use Locale::PO;
use TmplTokenizer; use TmplTokenizer;
use VerboseWarnings; use VerboseWarnings;

Loading…
Cancel
Save