summaryrefslogtreecommitdiffstats
path: root/t/encryption.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-07-14 22:30:42 -0400
committerJesse Luehrs <doy@tozt.net>2016-07-14 22:32:58 -0400
commit1f70125c798202be1a52e567e174965b639d5c73 (patch)
treed07cb3369a025d8bf301deb4473d27854b597567 /t/encryption.t
parentd69aaf9b1805728a1c3a2d49511c9e215a865828 (diff)
downloadspreadsheet-parsexlsx-1f70125c798202be1a52e567e174965b639d5c73.tar.gz
spreadsheet-parsexlsx-1f70125c798202be1a52e567e174965b639d5c73.zip
open files in raw mode
this is required on windows
Diffstat (limited to 't/encryption.t')
-rw-r--r--t/encryption.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/encryption.t b/t/encryption.t
index 594701b..2ab510f 100644
--- a/t/encryption.t
+++ b/t/encryption.t
@@ -9,8 +9,8 @@ use Spreadsheet::ParseXLSX;
my $filename = 't/data/encryption-agile-123q.xlsx';
my @inputs = (
$filename,
- do { open my $fh, '<', $filename or die; $fh },
- do { open my $fh, '<', $filename or die; local $/; my $d = <$fh>; \$d },
+ do { open my $fh, '<:raw:bytes', $filename or die; $fh },
+ do { open my $fh, '<:raw:bytes', $filename or die; local $/; my $d = <$fh>; \$d },
);
my $parser = Spreadsheet::ParseXLSX->new(Password => '123q');
@@ -27,8 +27,8 @@ use Spreadsheet::ParseXLSX;
my $filename = 't/data/encryption-standard-default-password.xlsx';
my @inputs = (
$filename,
- do { open my $fh, '<', $filename or die; $fh },
- do { open my $fh, '<', $filename or die; local $/; my $d = <$fh>; \$d },
+ do { open my $fh, '<:raw:bytes', $filename or die; $fh },
+ do { open my $fh, '<:raw:bytes', $filename or die; local $/; my $d = <$fh>; \$d },
);
my $parser = Spreadsheet::ParseXLSX->new(Password => '');