-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Formatting/debug of OS strings #22766
Copy link
Copy link
Closed
Labels
C-feature-acceptedCategory: A feature request that has been accepted pending implementation.Category: A feature request that has been accepted pending implementation.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Metadata
Metadata
Assignees
Labels
C-feature-acceptedCategory: A feature request that has been accepted pending implementation.Category: A feature request that has been accepted pending implementation.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
OsStrimplementsfmt::Debug:to_lossy_str, thenfmt::Debug::fmton the resultingString, which escapes all control or non-ASCII characters.implI originally wrote for rust-wft8, which is lossless but only escapes surrogate code points. In particular, it happily prints control characters.So there are two issues: they should be consistent across platforms, and is it OK for a
Debugimpl to be lossy?CC @aturon, @alexcrichton