Main: fix Clang builds.
For some reason, only GCC has setlocale() wrapped in the std namespace.
This commit is contained in:
parent
07fca7b0d0
commit
90ff680aff
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue