Repository navigation
Align REG_MULTI_SZ input encoding with CPython - #9604
Conversation
Preserve embedded NULs, encode None as the empty multi-string, and validate all items before building one output buffer. Assisted-by: dot:frontier-intelligence
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
The REG_MULTI_SZ encoding update removed the final to_wide_cstring call. Remove its obsolete trait import to fix Windows Clippy. Assisted-by: dot:frontier-intelligence
Head branch was pushed to by a user without write access
Assisted-by: dot:frontier-intelligence
Summary
Align the
REG_MULTI_SZinput conversion with CPython 3.15:Noneas the same two-byte empty multi-string used by CPython and by an empty list.Existing error types/messages for invalid items and very large-value overflow behavior are not addressed; this does not claim complete winreg parity.
Validation
PC/winreg.c; a CPython-onlyPyUnicode_AsWideCharprobe confirmed copying of embedded/trailing NULs.prekhooks andgit diff --checkpassed.Summary by CodeRabbit
Noneand empty lists with a single UTF-16 NUL terminator; previously, empty lists used two.