-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect string escaping in TOML encoder #201
Labels
component: encoder
Related to serialising in `toml.dump`
syntax: strings
Related to string literals
type: bug
A confirmed bug or unintended behavior
Comments
@uiri This bug is affecting two projects I am affiliated with Caster and Dragonfly. |
pradyunsg
added
type: bug
A confirmed bug or unintended behavior
syntax: strings
Related to string literals
component: encoder
Related to serialising in `toml.dump`
labels
Apr 20, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
component: encoder
Related to serialising in `toml.dump`
syntax: strings
Related to string literals
type: bug
A confirmed bug or unintended behavior
While encoding string values, the TOML encoder incorrecty handles backslash characters that occur in the string value.
For example:
returns
which is not valid TOML.
This bug also triggers failures in the encoder tests "escaped-escape" and "string-escapes" from the TOML test suite.
The text was updated successfully, but these errors were encountered: