Skip to content

test: add --iconv=utf8,latin1 filename round-trip integration test - #5394

Merged
oferchen merged 2 commits into
masterfrom
test/icv-4-iconv-round-trip
Jun 3, 2026
Merged

oferchen merged 2 commits into
masterfrom
test/icv-4-iconv-round-trip

Conversation

@oferchen

@oferchen oferchen commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add iconv_utf8_latin1_round_trip_preserves_filenames integration 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.
  • Add iconv_round_trip_trailing_slash_copies_contents test covering the same round-trip with trailing-slash source operands to exercise content-copy semantics through the iconv path.
  • Both tests gated on cfg(all(target_os = "linux", feature = "iconv")) consistent with existing iconv test infrastructure.

Closes #3489

Test plan

  • CI nextest(stable) passes with --all-features on Linux (exercises the iconv feature gate)
  • Windows/macOS CI unaffected (tests gated on target_os = "linux")
  • Verify round-trip fidelity for all five accented characters and nested directory structure

oferchen added 2 commits June 3, 2026 17:40
…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.
@github-actions github-actions Bot added the test label Jun 3, 2026
@oferchen
oferchen merged commit 619a681 into master Jun 3, 2026
112 of 114 checks passed
@oferchen
oferchen deleted the test/icv-4-iconv-round-trip branch June 3, 2026 17:10
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant