From 9b994b12aec748319b719cf0f75edd934c9aee01 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 26 Mar 2019 12:20:27 +1100 Subject: [PATCH] utf8: workaround gcc8's lack of char8_t --- test/utf8.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/utf8.cpp b/test/utf8.cpp index c6a7c6d4..1b6c2268 100644 --- a/test/utf8.cpp +++ b/test/utf8.cpp @@ -17,7 +17,13 @@ simple_valid (cruft::TAP::logger &tap) { "", 0, "empty string" }, { "a", 1, "single ANSI character" }, { "abc", 3, "multiple ANSI characters" }, + + // GCC#8 Disable u8 literals for compilers that support char8_t so + // that GCC's lack of support doesn't require a drastic and overly + // complicated workaround. Remove this condition when GCC9 is released. + #ifndef __cpp_char8_t { u8"κόσμε", 5, "greek kosme" }, + #endif }; static constexpr char fmt[] = "valid length, %s";