You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-libsRelevant to the library team, which will review and decide on the PR/issue.
however, if you want a proper round trip, you need to use OsString::from_encoded_bytes_unchecked, which actually consumes the Vec instead of taking a byte slice.
The text was updated successfully, but these errors were encountered:
lolbinarycat
added
the
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
label
Nov 13, 2024
jieyouxu
added
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Nov 13, 2024
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-libsRelevant to the library team, which will review and decide on the PR/issue.
Location
https://doc.rust-lang.org/stable/std/ffi/struct.OsString.html#method.into_encoded_bytes
Summary
contains this line:
however, if you want a proper round trip, you need to use
OsString::from_encoded_bytes_unchecked
, which actually consumes the Vec instead of taking a byte slice.The text was updated successfully, but these errors were encountered: