Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lang/c++/impl/NodeImpl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ string escape(const string &unescaped) {
s += 'b';
break;
case '\f':
s += '\f';
s += '\\';
s += 'f';
break;
case '\n':
s += '\\';
Expand Down
4 changes: 2 additions & 2 deletions lang/c++/test/SchemaTests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ const char *schemasToCompact[] = {

// Schema with whitespaces both inside and outside of field names/values.
"{\"type\": \"record\", \"name\": \"ComplexInteger\"\n, "
"\"doc\": \"record_doc °C \u00f8 \x1f \\n \n \t\", "
"\"doc\": \"record_doc °C \u00f8 \x1f \\f \f \\n \n \t\", "
"\"fields\": ["
"{\"name\": \"re1\", \"type\": \"long\", "
"\"doc\": \"A \\\"quoted doc\\\"\" }, "
Expand All @@ -418,7 +418,7 @@ const char *compactSchemas[] = {
R"({"type":"record","name":"Test","fields":[]})",
R"({"type":"record","name":"Test","fields":[]})",
"{\"type\":\"record\",\"name\":\"ComplexInteger\","
"\"doc\":\"record_doc °C \u00f8 \\u001f \\n \\n \\t\","
"\"doc\":\"record_doc °C \u00f8 \\u001f \\f \\f \\n \\n \\t\","
"\"fields\":["
"{\"name\":\"re1\",\"type\":\"long\",\"doc\":\"A \\\"quoted doc\\\"\"},"
"{\"name\":\"re2\",\"type\":\"long\",\"doc\":\"extra slashes\\\\\\\\\"}"
Expand Down
Loading