Skip to content

Commit

Permalink
Suppress UTF-8 conversion tests on recent versions of libstdc++
Browse files Browse the repository at this point in the history
  • Loading branch information
rikyoz committed Jun 29, 2024
1 parent 55a0f60 commit f3fade6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/src/test_stringutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ TEST_CASE( "util: Narrowing wide string to std::string", "[stringutil][narrow]"
REQUIRE( narrow( nullptr, 42 ).empty() );
}

#if !defined( _LIBCPP_VERSION )
// TODO: Fix UTF-8 conversions on latest versions of libstdc++
#if !defined( _LIBCPP_VERSION ) && ( !defined( _GLIBCXX_RELEASE ) || _GLIBCXX_RELEASE < 14 )
SECTION( "Converting wide strings with unencodable UTF-8 chars" ) {
std::wstring testInput = L"\xDC80";
std::string testOutput = narrow( testInput.c_str(), testInput.size() );
Expand Down

0 comments on commit f3fade6

Please sign in to comment.