tgockel / json-voorhees

A killer modern C++ library for interacting with JSON.
http://tgockel.github.io/json-voorhees/
Apache License 2.0
128 stars 18 forks source link

UTF Tests failing on GCC 8.1.0 release builds #108

Closed tgockel closed 6 years ago

tgockel commented 6 years ago

Three tests are failing only in release mode of GCC 8.1.0:

TEST: string_encode_surrogates_valid ... FAILURE !(R"(\ud800\udc00)" {\ud800\udc00} == string_encode_static("\xf0\x90\x80\x80") {\u0010\u0080\u0080})
TEST: string_decode_long_utf8_sequences ... FAILURE Threw exception of type jsonv::detail::decode_error: Invalid UTF-8 code point: \xffffff80.
TEST: string_decode_short_utf8_sequence ... FAILURE ! "decode_error" " was not thrown"

Not sure what's going on here.