mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-09 14:20:06 +00:00
d2937ff4e1
Previously a key like: "a\u0000\u0001b" = 1 Would get written with literal control characters, rather than escapes: "a<00><01>b" = 1 The "valid/key/quoted-unicode" test from toml-test would fail with this, although it seems they're not run automatically(?) Can also reproduce with something like: % cat test.cpp #include <toml.hpp> #include <iostream> int main() { const auto data = toml::parse("test.toml"); std::cout << data << "\n"; return 0; } % cat test.toml "a\u0000\u0001b" = "a\u0000\u0001b" % c++ -I. test.cpp % ./a.out "ab" = "a\u0000\u0001b" % ./a.out | hexdump -C 00000000 22 61 00 01 62 22 20 3d 20 22 61 5c 75 30 30 30 |"a..b" = "a\u000| 00000010 30 5c 75 30 30 30 31 62 22 0a 0a |0\u0001b"..| |
||
---|---|---|
.. | ||
color.hpp | ||
combinator.hpp | ||
comments.hpp | ||
datetime.hpp | ||
exception.hpp | ||
from.hpp | ||
get.hpp | ||
into.hpp | ||
lexer.hpp | ||
literal.hpp | ||
macros.hpp | ||
parser.hpp | ||
region.hpp | ||
result.hpp | ||
serializer.hpp | ||
source_location.hpp | ||
storage.hpp | ||
string.hpp | ||
traits.hpp | ||
types.hpp | ||
utility.hpp | ||
value.hpp | ||
version.hpp |