diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 885feec..b3ba5f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,7 +33,7 @@ env: jobs: build_windows: name: Windows - runs-on: windows-2025 + runs-on: windows-2022 strategy: fail-fast: false env: diff --git a/src/rsgain.cpp b/src/rsgain.cpp index 853010d..1454d45 100644 --- a/src/rsgain.cpp +++ b/src/rsgain.cpp @@ -349,7 +349,12 @@ int main(int argc, char *argv[]) { { "version", no_argument, nullptr, 'v' }, { 0, 0, 0, 0 } }; +#ifndef _WIN32 + // On Windows, the CRT's numpunct facet crashes when accessed for locales that use + // non-ASCII thousands separators (e.g. French NARROW NO-BREAK SPACE U+202F), which + // is triggered by the {:L} format specifiers used for locale-aware number output. try { std::locale::global(std::locale("")); } catch(...) {} +#endif av_log_set_callback(nullptr); #ifdef _WIN32