PerlDancer / PerlDancer/Dancer2
Failed test 'Failure opening nonexistent file' (non-English locale + perl < 5.22)
Open
Nobody has claimed this yet.
- Dominant language
- Perl
- Stars
- 604
- Forks
- 288
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 5
Description
On some of my smokers the test suite fails:
# Failed test 'Failure opening nonexistent file'
# at t/file_utils.t line 29.
# 'Error open (<:encoding(UTF-8)) on '/slfkjsdlkfjsdlf': Datei oder Verzeichnis nicht gefunden at /home/cpansand/.cpan/build/2026031205/Dancer2-2.1.0-1/blib/lib/Dancer2/FileUtils.pm line 42.
# '
# doesn't match '(?^:^Error open.+No such file or directory)'
# Looks like you failed 1 test of 14.
t/file_utils.t .........................................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/14 subtests
Probably this happens only with older perls (< 5.22) if a non-English locale (here it was LC_ALL=de_DE.ISO8859-1) is set.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with t/file_utils.t, especially the “Failure opening nonexistent file” test at line 29, then inspect Dancer2/FileUtils.pm around line 42. Reproduce the failure with Perl older than 5.22 and a non-English locale such as de_DE.ISO8859-1. Done means the test suite passes in that environment while retaining the expected nonexistent-file error behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- perl
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100