Skip to content
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

toml_edit doesn't properly handle quotes in strings #128

Closed
Tracked by #58
epage opened this issue Aug 26, 2021 · 2 comments · Fixed by #125 or #220
Closed
Tracked by #58

toml_edit doesn't properly handle quotes in strings #128

epage opened this issue Aug 26, 2021 · 2 comments · Fixed by #125 or #220
Labels
C-bug Category: Things not working as expected

Comments

@epage
Copy link
Member

epage commented Aug 26, 2021

Run cargo test decoder_compliance -- --noignore and you'll see a test failure for '''' test '''' which should produce ' test 'but instead errors.

@epage epage added the C-bug Category: Things not working as expected label Aug 26, 2021
@epage
Copy link
Member Author

epage commented Sep 22, 2021

I tried reaching out on gitter but got no response: https://gitter.im/Marwes/combine?at=612547ac5739ab2df8b6c2ec

epage added a commit to epage/toml_edit that referenced this issue Sep 28, 2021
This doesn't fix toml-rs#128 but it makes it clearer where we are broken.

We might also get some batching string creation performance benefits.

This also makes it clear why `ml_literal_string` needs to allocate.  We
could possibly swap out a `Cow` so only `\r\n` users see a cost.
epage added a commit that referenced this issue Sep 28, 2021
This doesn't fix #128 but it makes it clearer where we are broken.

We might also get some batching string creation performance benefits.

This also makes it clear why `ml_literal_string` needs to allocate.  We
could possibly swap out a `Cow` so only `\r\n` users see a cost.
@ordian ordian reopened this Sep 28, 2021
@epage
Copy link
Member Author

epage commented Sep 28, 2021

Github's regex is way too loose when it closes things as fixed because you explained it wasn't fixed.

Thanks for noticing!

@ordian ordian linked a pull request Sep 29, 2021 that will close this issue
epage added a commit to epage/toml_edit that referenced this issue Sep 29, 2021
Required munging the grammar so `combine` could understand, but we got
it!

Fixes toml-rs#128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Things not working as expected
Projects
None yet
2 participants