Main: fix Clang builds.

For some reason, only GCC has setlocale() wrapped in the std namespace.
This commit is contained in:
Guillaume Jacquemin 2022-11-26 11:30:48 +01:00
parent 07fca7b0d0
commit 90ff680aff

View file

@ -40,7 +40,7 @@ int main(int argc, char** argv) {
LOG_INFO("Initialising M.A.S.S. Builder Save Tool version " SAVETOOL_VERSION "."); LOG_INFO("Initialising M.A.S.S. Builder Save Tool version " SAVETOOL_VERSION ".");
auto str = std::setlocale(LC_ALL, ".utf-8"); auto str = setlocale(LC_ALL, ".utf-8");
if(str) { if(str) {
Containers::StringView locale{str}; Containers::StringView locale{str};
LOG_INFO_FORMAT("Current locale: {}", locale); LOG_INFO_FORMAT("Current locale: {}", locale);