-
Notifications
You must be signed in to change notification settings - Fork 191
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
Backslash roundtrip problem #404
Comments
Ok, I think I've narrowed this down to the presence of
Line 98 in 59d83d0
\x , but does not ignore \\x .
|
Fixes github bug uiri#404
I've created a pull request. However, I notice there are problems with strings like '\x02' which don't seem to work, which my pull request doesn't address. |
Work around uiri/toml#404 by changing backslashes to slashes
Got bitten by this just now. I have a user whose name starts with an 'x' and saving their home directory path into a config file breaks my app. Not fun. |
I'm switching to |
Fixes a nasty encoding bug, see uiri/toml#404.
We were also bitten by this: >>> toml.dumps({'A': '\\x2d'})
'A = "\\u002d"\n' As was already pointed out, this code is at fault: Lines 99 to 113 in 59d83d0
The code is extremely complicated and must be untangled in order to fix this bug. We didn't attempt it; instead we're planning on switching to |
I'm having problems with Windows paths stored in toml files:
It looks like only some backslashes are escaped properly by
dumps
. I tested this with toml from github.The text was updated successfully, but these errors were encountered: