Add FMT_STRING for format_to() call (#3413)

This commit is contained in:
mogemimi 2023-05-03 23:58:40 +09:00 committed by GitHub
parent d7a8e50cb5
commit d8973bf16b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,8 +169,8 @@ void detail::format_windows_error(detail::buffer<char>& out, int error_code,
if (msg) {
auto utf8_message = utf16_to_utf8();
if (utf8_message.convert(msg) == ERROR_SUCCESS) {
fmt::format_to(buffer_appender<char>(out), "{}: {}", message,
string_view(utf8_message));
fmt::format_to(buffer_appender<char>(out), FMT_STRING("{}: {}"),
message, string_view(utf8_message));
return;
}
}