diff --git a/format-test.cc b/format-test.cc index 9da629a5..c5be9030 100644 --- a/format-test.cc +++ b/format-test.cc @@ -292,9 +292,9 @@ std::string GetTestErrorMessage() { FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, 0, ERROR_FILE_EXISTS, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), reinterpret_cast(&message), 0, 0); - ampl::UTF16ToUTF8 utf8_message(message); + fmt::internal::UTF16ToUTF8 utf8_message(message); LocalFree(message); - return std::string(utf8_message); + return fmt::str(utf8_message); } #endif