Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #358 from dtolnay/unicode
Browse files Browse the repository at this point in the history
Adding support for emitting Unicode characters over codepoint U+FFFF
  • Loading branch information
dtolnay authored Mar 5, 2023
2 parents eac69a2 + 779f016 commit 248d6de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ indexmap = { version = "1.9", features = ["std"] }
itoa = "1.0"
ryu = "1.0"
serde = "1.0.139"
unsafe-libyaml = "0.2.4"
unsafe-libyaml = "0.2.7"

[dev-dependencies]
anyhow = "1.0"
Expand Down
5 changes: 5 additions & 0 deletions tests/test_serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,11 @@ fn test_string_escapes() {
"\x1F\uFEFF"
"#};
test_serde(&"\u{1f}\u{feff}".to_owned(), yaml);

let yaml = indoc! {r#"
🎉
"#};
test_serde(&"\u{1f389}".to_owned(), yaml);
}

#[test]
Expand Down

0 comments on commit 248d6de

Please sign in to comment.