From 924b30f57a7f73f76e3def048c28bc54a3a46a08 Mon Sep 17 00:00:00 2001 From: 23945 <2394555023@qq.com> Date: Sat, 19 Aug 2023 14:03:24 +0800 Subject: [PATCH] =?UTF-8?q?replace=20string=5Fview("=EF=BF=BD")=20to=200xF?= =?UTF-8?q?FFD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index f5247586..1142c9b3 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1453,7 +1453,7 @@ template class to_utf8 { ++p; if (p == s.end() || (c & 0xfc00) != 0xd800 || (*p & 0xfc00) != 0xdc00) { if (policy == to_utf8_error_policy::abort) return false; - buf.append(string_view("�")); + buf.append(0xFFFD); --p; } else { c = (c << 10) + static_cast(*p) - 0x35fdc00;