Repository navigation
test: add --iconv=utf8,latin1 filename round-trip integration test - #5394
Merged
Merged
Conversation
…3489) Add two integration tests verifying that filenames survive a complete UTF-8 -> ISO-8859-1 -> UTF-8 round-trip through the local-copy iconv path: - iconv_utf8_latin1_round_trip_preserves_filenames: exercises five distinct Latin-1 accented characters (e-acute, n-tilde, u-diaeresis, o-diaeresis, a-grave) across flat files and nested directories. Verifies intermediate Latin-1 encoding and final UTF-8 recovery, plus payload integrity. - iconv_round_trip_trailing_slash_copies_contents: same round-trip but with trailing-slash source operands (content-copy semantics) to cover both from_operands path behaviors. Both tests are gated on cfg(all(target_os = "linux", feature = "iconv")) consistent with the existing iconv_local_copy test file.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…5394) * test: add --iconv=utf8,latin1 filename round-trip integration test (#3489) Add two integration tests verifying that filenames survive a complete UTF-8 -> ISO-8859-1 -> UTF-8 round-trip through the local-copy iconv path: - iconv_utf8_latin1_round_trip_preserves_filenames: exercises five distinct Latin-1 accented characters (e-acute, n-tilde, u-diaeresis, o-diaeresis, a-grave) across flat files and nested directories. Verifies intermediate Latin-1 encoding and final UTF-8 recovery, plus payload integrity. - iconv_round_trip_trailing_slash_copies_contents: same round-trip but with trailing-slash source operands (content-copy semantics) to cover both from_operands path behaviors. Both tests are gated on cfg(all(target_os = "linux", feature = "iconv")) consistent with the existing iconv_local_copy test file. * style: apply cargo fmt formatting
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.
Summary
iconv_utf8_latin1_round_trip_preserves_filenamesintegration test that creates source files with five distinct Latin-1-representable accented characters (e-acute, n-tilde, u-diaeresis, o-diaeresis, a-grave), transfers forward (UTF-8 to ISO-8859-1), verifies intermediate encoding, transfers back (ISO-8859-1 to UTF-8), and asserts byte-identical filename recovery plus payload integrity across flat files and nested directories.iconv_round_trip_trailing_slash_copies_contentstest covering the same round-trip with trailing-slash source operands to exercise content-copy semantics through the iconv path.cfg(all(target_os = "linux", feature = "iconv"))consistent with existing iconv test infrastructure.Closes #3489
Test plan
--all-featureson Linux (exercises theiconvfeature gate)target_os = "linux")