From af08647cc9d778a1d2c010148e4144f661ffd891 Mon Sep 17 00:00:00 2001 From: 23945 <2394555023@qq.com> Date: Sat, 19 Aug 2023 14:24:14 +0800 Subject: [PATCH] =?UTF-8?q?replace=20string=5Fview("=EF=BF=BD")=20to=20hex?= =?UTF-8?q?=20style?= 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..1a05db31 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(string_view("\xEF\xBF\xBD")); --p; } else { c = (c << 10) + static_cast(*p) - 0x35fdc00;