-
-
Notifications
You must be signed in to change notification settings - Fork 15k
OsString Debug implementation prints escaped single quotes #114583
Copy link
Copy link
Closed
Labels
A-fmtArea: `core::fmt`Area: `core::fmt`T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.relnotesMarks issues that should be documented in the release notes of the next release.Marks issues that should be documented in the release notes of the next release.
Metadata
Metadata
Assignees
Labels
A-fmtArea: `core::fmt`Area: `core::fmt`T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.relnotesMarks issues that should be documented in the release notes of the next release.Marks issues that should be documented in the release notes of the next release.
Type
Fields
Give feedbackNo fields configured for issues without a type.
produces
(playground)
#83046 reported the behavior of
<str as Debug>::fmtescaping single quotes, and it was changed in #83079. Should we do the same forOsString?I ran into this in #114132. It seems easy to fix for unix:
But on windows
OsStringis implemented usingWtf8, which is instdrather thancore, which means it can't callchar::escape_debug_ext:rust/library/std/src/sys_common/wtf8.rs
Line 532 in 139b49b