Skip to content

cpan/Encode/t/Unicode_trailing_nul.t leaves temp files behind #23221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sevan opened this issue Apr 23, 2025 · 1 comment · May be fixed by #23223
Open

cpan/Encode/t/Unicode_trailing_nul.t leaves temp files behind #23221

sevan opened this issue Apr 23, 2025 · 1 comment · May be fixed by #23223

Comments

@sevan
Copy link
Contributor

sevan commented Apr 23, 2025

$ perl cpan/Encode/t/Unicode_trailing_nul.t
# temp file: /tmp/bx3fP1Dhzr
ok 1 - UTF-16 decodes with trailing NUL
1..1

/tmp/bx3fP1Dhzr remains when test finishes.

Already fixed upstream but a new release hasn't been cut since. Since it's a one word change, raising a bug report in case it can still be accommodated.

jkeenan added a commit to jkeenan/perl5 that referenced this issue Apr 23, 2025
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
@jkeenan jkeenan linked a pull request Apr 23, 2025 that will close this issue
@ap
Copy link
Contributor

ap commented Apr 24, 2025

I opened dankogai/p5-encode#183 asking @dankogai to ship the fix to CPAN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants