diff options
author | swarmer <swarmer@yandex-team.ru> | 2022-06-10 02:32:20 +0300 |
---|---|---|
committer | swarmer <swarmer@yandex-team.ru> | 2022-06-10 02:32:20 +0300 |
commit | 7f76c51b6990d71c93d2af4e9c748a3d150ddbf3 (patch) | |
tree | 987bdcd1619e885cc7ab16c76b06c4f2b9e067a0 | |
parent | c030f2ecf1fff5bc710b70c9f82a606733599e4b (diff) | |
download | ydb-7f76c51b6990d71c93d2af4e9c748a3d150ddbf3.tar.gz |
[protobuf] revert "print bytes as string" patch
IGNIETFERRO-2005
ref:654c58349277712629da0077da5456caae3cffba
-rw-r--r-- | contrib/libs/protobuf/src/google/protobuf/text_format.cc | 2 | ||||
-rw-r--r-- | library/cpp/codecs/static/ut/builder_ut.cpp | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/contrib/libs/protobuf/src/google/protobuf/text_format.cc b/contrib/libs/protobuf/src/google/protobuf/text_format.cc index 93a2ea8ed3..74d01b885e 100644 --- a/contrib/libs/protobuf/src/google/protobuf/text_format.cc +++ b/contrib/libs/protobuf/src/google/protobuf/text_format.cc @@ -2475,7 +2475,7 @@ void TextFormat::Printer::PrintFieldValue(const Message& message, printer->PrintString(*value_to_print, generator); } else { GOOGLE_DCHECK_EQ(field->type(), FieldDescriptor::TYPE_BYTES); - printer->PrintString(*value_to_print, generator); + printer->PrintBytes(*value_to_print, generator); } break; } diff --git a/library/cpp/codecs/static/ut/builder_ut.cpp b/library/cpp/codecs/static/ut/builder_ut.cpp index b47c279ed1..778ab47d93 100644 --- a/library/cpp/codecs/static/ut/builder_ut.cpp +++ b/library/cpp/codecs/static/ut/builder_ut.cpp @@ -30,12 +30,12 @@ private: UNIT_ASSERT_VALUES_EQUAL(res.ShortUtf8DebugString(), "StoredCodec: \"\\007\\000huffman@S\\000a" "\\006b\\005c\\005d\\005e\\005f\\005g\\005h\\005i\\005j\\005k\\005l\\005m\\005n\\005o" - "\\005p\\005q\\005r\\005s\\005t\\005u\\004v\\004w\\004x\\004y\\004z\\004\xC7?\xC8>" - "\xC9=\xCA<\xCB;\xCC:\3159\3168\3177\3206\3215\3224\3233\3242\3251\3260\xD7/\xD8." - "\xD9-\xDA,\xDB+\xDC*\xDD)\xDE(\xDF\\'\xE0&\xE1%\xE2$\xE3#\xE4\\\"\xE5!\xE6 \xE7" - "\\037\xE8\\036\xE9\\035\xEA\\034\xEB\\033\xEC\\032\xED\\031\xEE\\030\xEF\\027\xF0" - "\\026\xF1\\025\xF2\\024\xF3\\023\xF4\\022\xF5\\021\xF6\\020\xF7\\017\xF8\\016\xF9" - "\\r\xFA\\014\xFB\\013\xFC\\n\xFD\\t\xFE\\010\xFF\\007\" " + "\\005p\\005q\\005r\\005s\\005t\\005u\\004v\\004w\\004x\\004y\\004z\\004\\307?\\310>" + "\\311=\\312<\\313;\\314:\\3159\\3168\\3177\\3206\\3215\\3224\\3233\\3242\\3251\\3260\\327/\\330." + "\\331-\\332,\\333+\\334*\\335)\\336(\\337\\'\\340&\\341%\\342$\\343#\\344\\\"\\345!\\346 \\347" + "\\037\\350\\036\\351\\035\\352\\034\\353\\033\\354\\032\\355\\031\\356\\030\\357\\027\\360" + "\\026\\361\\025\\362\\024\\363\\023\\364\\022\\365\\021\\366\\020\\367\\017\\370\\016\\371" + "\\r\\372\\014\\373\\013\\374\\n\\375\\t\\376\\010\\377\\007\" " "DebugInfo { " "CodecName: \"huffman\" " "Timestamp: 1467494385 " |