Skip to content

Conversation

@dtolnay
Copy link
Owner

@dtolnay dtolnay commented Feb 24, 2020

Using escape_debug instead of escape_default matches the behavior of libproc_macro for:

println!("{:#?}", "///こんにちは世界".parse::<TokenStream>().unwrap());

Before: "\u{3053}\u{3093}\u{306b}\u{3061}\u{306f}\u{4e16}\u{754c}"
After: "こんにちは世界"

Fixes dtolnay/syn#772.

Using escape_debug instead of escape_default matches the behavior of
libproc_macro for:

    println!("{:#?}", "///こんにちは世界".parse::<TokenStream>().unwrap());

Before: "\u{3053}\u{3093}\u{306b}\u{3061}\u{306f}\u{4e16}\u{754c}"
After: "こんにちは世界"
@dtolnay dtolnay merged commit ff2fc3c into master Feb 24, 2020
@dtolnay dtolnay deleted the escape branch February 24, 2020 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doc comments that include NON-ASCII characters not work as expected

2 participants