Skip to content

Commit 0cb6a24

Browse files
committed
Executing this test file leaves a temporary file in /tmp.
File::Temp::tempfile() takes 'UNLINK'. ('CLEANUP' is associated with File::Temp::tempdir().) As noted by Sevan Janiyn, this has already been fixed upstream, but a new CPAN release of Encode has not yet been issued. Fixes: Perl#23221
1 parent 6c95af2 commit 0cb6a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpan/Encode/t/Unicode_trailing_nul.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use File::Spec;
1616

1717
my $foo = Encode::decode("UTF-16LE", "/\0v\0a\0r\0/\0f\0f\0f\0f\0f\0f\0/\0u\0s\0e\0r\0s\0/\0s\0u\0p\0e\0r\0m\0a\0n\0");
1818

19-
my ($fh, $path) = File::Temp::tempfile( CLEANUP => 1 );
19+
my ($fh, $path) = File::Temp::tempfile( UNLINK => 1 );
2020

2121
note "temp file: $path";
2222

0 commit comments

Comments
 (0)