diff --git a/textproc/zxing-cpp/files/patch-core_src_Utf.cpp b/textproc/zxing-cpp/files/patch-core_src_Utf.cpp new file mode 100644 index 000000000000..cf8e04839b92 --- /dev/null +++ b/textproc/zxing-cpp/files/patch-core_src_Utf.cpp @@ -0,0 +1,21 @@ +--- core/src/Utf.cpp.orig 2023-12-10 23:43:27 UTC ++++ core/src/Utf.cpp +@@ -20,7 +20,7 @@ using char8_t = uint8_t; + #if __cplusplus <= 201703L + using char8_t = uint8_t; + #endif +-using utf8_t = std::basic_string_view; ++using utf8_t = std::vector; + + using state_t = uint8_t; + constexpr state_t kAccepted = 0; +@@ -118,7 +118,8 @@ std::wstring FromUtf8(std::string_view utf8) + std::wstring FromUtf8(std::string_view utf8) + { + std::wstring str; +- AppendFromUtf8({reinterpret_cast(utf8.data()), utf8.size()}, str); ++ const char8_t* data = reinterpret_cast(utf8.data()); ++ AppendFromUtf8({data, data + utf8.size()}, str); + return str; + } +