microsoft / microsoft/windows-rs

`windows-registry` should allow OsStr paths

Open
#3,878 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Rust
Stars
12.8k
Forks
665
Avg merge
7h 9m
Merged PRs (30d)
70

Description

### Summary

Windows Registry paths are not generally guaranteed to be UTF-8. The paths are often used as inputs and outputs to other APIs, which take and return OS strings (OsStr or HSTRING, etc, which don't enforce encoding) requiring a _lossy or unwrap_or_default etc at the API boundary.

### Crate manifest

```TOML

```

### Crate code

```Rust

```

Contributor guide

Open the contributing guide

Research direction

Start by locating the windows-registry crate APIs that accept or return registry paths and inspect how they currently represent strings. Done means registry paths can be handled as OsStr-compatible values without requiring lossy conversion, unwrap_or_default, or UTF-8 assumptions at API boundaries.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.