Skip to content

chore: reference rust-lang/rust#116258#31

Merged
Tom Plant (pl4nty) merged 1 commit into
feat/analyse-installshieldfrom
claude/installshield-issue-lookup-csldxo
Jul 18, 2026
Merged

chore: reference rust-lang/rust#116258#31
Tom Plant (pl4nty) merged 1 commit into
feat/analyse-installshieldfrom
claude/installshield-issue-lookup-csldxo

Conversation

@pl4nty

@pl4nty Tom Plant (pl4nty) commented Jul 18, 2026

Copy link
Copy Markdown
Member

What

Adds a 3-line TODO comment in read_utf16le_strz (src/analysis/installers/installshield/mod.rs) linking to rust-lang/rust#116258.

Targets feat/analyse-installshield, since the InstallShield parser this annotates lives on that branch and isn't in main yet.

Why

That issue tracks the str_from_utf16_endian feature, which adds String::from_utf16le/from_utf16le_lossy (and big-endian variants) that decode UTF-16 directly from a &[u8] byte slice. The InstallShield overlay parser stores filenames as UTF-16LE bytes and currently reassembles u16 code units by hand before decoding through encoding_rs::UTF_16LE. Once the feature stabilises, that can collapse to String::from_utf16le_lossy(&buf) with no encoding_rs dependency on this path.

The comment records that connection at the call site so it isn't lost. No behavioural change.

🤖 Generated with Claude Code

…ld UTF-16LE decoding

Add a TODO in read_utf16le_strz linking to rust-lang/rust#116258. Once that
feature stabilises, the manual code-unit reassembly + encoding_rs decode can be
replaced with String::from_utf16le_lossy operating directly on the byte slice.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CeK2pahUdkd6ZXq2RsGRd3
@pl4nty
Tom Plant (pl4nty) changed the base branch from main to feat/analyse-installshield July 18, 2026 11:36
@pl4nty
Tom Plant (pl4nty) marked this pull request as ready for review July 18, 2026 12:26
@pl4nty Tom Plant (pl4nty) changed the title Link rust-lang/rust#116258 as a future InstallShield UTF-16LE simplification chore: reference rust-lang/rust#116258 Jul 18, 2026
@pl4nty
Tom Plant (pl4nty) merged commit d488265 into feat/analyse-installshield Jul 18, 2026
5 of 7 checks passed
@pl4nty
Tom Plant (pl4nty) deleted the claude/installshield-issue-lookup-csldxo branch July 18, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants