mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 18:57:34 +02:00
Add FMT_STRING for format_to() call (#3413)
This commit is contained in:
@ -169,8 +169,8 @@ void detail::format_windows_error(detail::buffer<char>& out, int error_code,
|
|||||||
if (msg) {
|
if (msg) {
|
||||||
auto utf8_message = utf16_to_utf8();
|
auto utf8_message = utf16_to_utf8();
|
||||||
if (utf8_message.convert(msg) == ERROR_SUCCESS) {
|
if (utf8_message.convert(msg) == ERROR_SUCCESS) {
|
||||||
fmt::format_to(buffer_appender<char>(out), "{}: {}", message,
|
fmt::format_to(buffer_appender<char>(out), FMT_STRING("{}: {}"),
|
||||||
string_view(utf8_message));
|
message, string_view(utf8_message));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user