diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-06-25 00:25:17 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-06-25 00:25:17 -0400 |
commit | e3e5b700df9cb2d6138e35bf0def178524c46c14 (patch) | |
tree | d6d6fa41b8a9a12b0e6f6fb418e7548bdb8df655 /src/abaddon.cpp | |
parent | 8fc4d0334faeecc12773c6757e1d833d0b81e345 (diff) | |
download | abaddon-portaudio-e3e5b700df9cb2d6138e35bf0def178524c46c14.tar.gz abaddon-portaudio-e3e5b700df9cb2d6138e35bf0def178524c46c14.zip |
confine locale weirdness to windows only (#317)
Diffstat (limited to 'src/abaddon.cpp')
-rw-r--r-- | src/abaddon.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/abaddon.cpp b/src/abaddon.cpp index 7f4281d..b0a1a56 100644 --- a/src/abaddon.cpp +++ b/src/abaddon.cpp @@ -1154,9 +1154,14 @@ void Abaddon::on_window_hide() { } int main(int argc, char **argv) { - if (std::getenv("ABADDON_NO_FC") == nullptr) + if (std::getenv("ABADDON_NO_FC") == nullptr) { Platform::SetupFonts(); + } + + // windows doesnt have langinfo.h so some localization falls back to translation strings + // i dont like the default translation so this lets us use strftime +#ifdef _WIN32 char *systemLocale = std::setlocale(LC_ALL, ""); try { if (systemLocale != nullptr) { @@ -1170,6 +1175,7 @@ int main(int argc, char **argv) { } } catch (...) {} } +#endif #if defined(_WIN32) && defined(_MSC_VER) TCHAR buf[2] { 0 }; |