Skip to content

Commit

Permalink
Fixed: Strings with code points over 0xFF may not be mapped into in-m…
Browse files Browse the repository at this point in the history
…emory file handles
  • Loading branch information
nuxwin committed Dec 26, 2016
1 parent b45664e commit d076677
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
Git 1.3.x
------------------------------------------------------------------------------------------------------------------------

BACKEND
Fixed: Strings with code points over 0xFF may not be mapped into in-memory file handles

------------------------------------------------------------------------------------------------------------------------
1.3.12
------------------------------------------------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion engine/PerlLib/Servers/mta/postfix.pm
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ sub postconf
[ 'postconf', '-c', $self->{'config'}->{'POSTFIX_CONF_DIR'}, keys %params ],
sub {
my $buffer = shift;
open my $stdout, '<:utf8', \$buffer or die( sprintf( 'Could not open: %s', $! ) );
open my $stdout, '<', \$buffer or die( sprintf( 'Could not open in-memory file: %s', $! ) );
while(<$stdout>) {
/^([^=]+)\s+=\s+(.*)/;
next unless defined $1 && defined $2;
Expand Down
2 changes: 1 addition & 1 deletion engine/PerlLib/iMSCP/Bootstrapper.pm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use iMSCP::EventManager;
use iMSCP::Getopt;
use IO::Handle;
use locale;
use open qw/ :std :utf8 /;
use open OUT => ':utf8';
use POSIX qw / tzset locale_h /;
use parent 'Common::SingletonClass';

Expand Down
2 changes: 1 addition & 1 deletion engine/PerlLib/iMSCP/Dialog.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use iMSCP::Debug;
use iMSCP::Execute;
use iMSCP::Getopt;
use iMSCP::ProgramFinder;
use open qw/ :std :utf8 /;
use open OUT => ':utf8';
use parent 'Common::SingletonClass';

=head1 DESCRIPTION
Expand Down
1 change: 0 additions & 1 deletion engine/PerlLib/iMSCP/Execute.pm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ my $vendorLibDir;
BEGIN { $vendorLibDir = realpath( dirname( __FILE__ ).'/../../PerlVendor' ); }
use lib $vendorLibDir;
use Capture::Tiny ':all';
use open qw/ :std :utf8 /;
use parent 'Exporter';

our @EXPORT = qw/ execute executeNoWait escapeShell getExitCode /;
Expand Down
2 changes: 1 addition & 1 deletion engine/PerlLib/iMSCP/File.pm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use warnings;
use iMSCP::Debug;
use File::Copy;
use File::Basename;
use open qw/ :std :utf8 /;
use open OUT => ':utf8';
use parent 'Common::Object';

=head1 DESCRIPTION
Expand Down
1 change: 0 additions & 1 deletion engine/PerlLib/iMSCP/Mount.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ use File::Spec;
use File::stat ();
use iMSCP::Debug;
use iMSCP::Syscall;
use open qw/ :std :utf8 /;
use Scalar::Defer;
use Quota;
use parent 'Exporter';
Expand Down

0 comments on commit d076677

Please sign in to comment.