Repository navigation
Fixes for UTF8 filenames with C++20 - #2073
Merged
jminor merged 3 commits intoOct 22, 2026
Merged
Conversation
Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2073 +/- ##
=======================================
Coverage 83.60% 83.61%
=======================================
Files 182 183 +1
Lines 13575 13579 +4
Branches 1261 1261
=======================================
+ Hits 11350 11354 +4
Misses 2052 2052
Partials 173 173
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Collaborator
Author
|
Note that the C++ example file is not set up to handle UTF-8 so it just uses |
Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
The error and zip64 tests passed UTF-8 strings straight to std::filesystem, which reads a plain string in the native encoding. That is the code page on Windows, so with a non-ASCII temporary directory -- a user name with an accent is enough -- the files were not found, and a test could fail on a developer's machine while passing on CI. Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
jminor
approved these changes
Oct 22, 2026
jminor
merged commit Oct 22, 2026
ad11cf1
into
AcademySoftwareFoundation:main
89 of 117 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In C++20 the return type for
std::filesystem::path::u8string()was changed fromstd::stringtostd::u8stringwhich breaks the existing code. This PR adds helper functions for the conversions that work with both C++17 and C++20, and updates the bundle code to use them. It also adds non-ASCII names to the bundle round-trip tests which previously only used ASCII.Note that
std::filesystem::path::string()doesn't work as a replacement because on Windows it doesn't return UTF-8.These changes are needed for the C++20 support in #2071.
Assisted-by: Claude:claude-opus-5-5 [implementation] [testing]