-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-UnicodeArea: UnicodeArea: UnicodeC-bugCategory: This is a bug.Category: This is a bug.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
Minimal example:
fn main() {
let s = "e\u{301}";
println!("str: {:?}", s);
println!("bytes: {:?}", s.chars().collect::<Vec<_>>());
}
Expected output is either:
str: "é"
bytes: ['e', '\u{301}']
Or:
str: "é"
bytes: ['e', '◌́']
Actual output:
str: "é"
bytes: ['e', '́']
Note that the combining accent prints over the single quote. This is confusing and shouldn't happen.
hanna-kruppe
Metadata
Metadata
Assignees
Labels
A-UnicodeArea: UnicodeArea: UnicodeC-bugCategory: This is a bug.Category: This is a bug.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.