Repository navigation
Use UTF-8 encoding for GHCi -unit response file arguments - #12574
Conversation
|
I think, in theory, it is worth reviewing every occurrence of |
f4e9d49 to
bf904ca
Compare
98f951d to
9cdd305
Compare
9cdd305 to
dabcb3d
Compare
Would it fit this PR or would a new PR be better? If the latter, could you kindly open a ticket so that we don't forget? |
I think another PR is better, this fixes a real bug, the other occurrences could be benign. Also, I am not committing to review the whole cabal codebase 😬 |
|
Thank you all for the thorough review, not my proudest PR, given the amount of oversights :D |
3404405 to
296efc5
Compare
|
I created an issue: #12580 |
296efc5 to
6a5dba8
Compare
❌ Left the queue ·
|
|
@Mergifyio queue |
✅ Merged into
|
|
I suspect that this doesn't work: |
|
Right, that's a pity. I am not sure how to fix this, we could skip it on platforms that don't support UTF-8 but a little unsure how? |
|
I suspect these CI images do not set locale to UTF-8. Which is unlikely to happen in real world, but pretty common for Docker images, trying to be minimal. It's unclear to me what exactly fails. It could be either Unicode filenames themselves (perhaps check |
|
Looking into it |
|
What fails is the Note, the Possible fixes: The temporary directory should contain utf-8 characters on supported systems to test that cabal generally works with utf-8. It also makes sense (to me) to have a dedicated test for this particular regression. |
|
This all seems incredibly tricky to get right... I started work on this in #12619, but everything keeps breaking... |
Fixes #12573
Updates the
cabal-testsuiteto use UTF-8 encoding appropriately, otherwise the tests crash due to the same encoding error that plagues-unit @rsp.Template B: This PR does not modify behaviour or interface
E.g. the PR only touches documentation or tests, does refactorings, etc.
Include the following checklist in your PR: