Default TomlEncoder does not escape backslashes correctly #415
Labels
component: encoder
Related to serialising in `toml.dump`
syntax: strings
Related to string literals
type: bug
A confirmed bug or unintended behavior
This is mainly an issue storing windows file paths.
In a nutshell, a config containing this data:
can be loaded with:
and then saved with:
But the result will remove the first two double backslashes for some characters that can be incorrectly parsed as valid.
It looks like the double-backslash is not recognized when the next character forms a valid unicode shorthand?
The text was updated successfully, but these errors were encountered: