Skip to content

Commit

Permalink
Initialize LC_NUMERIC to "C" for mpv
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Nov 14, 2023
1 parent b209f01 commit 87756ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wiliwili/source/utils/config_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,9 @@ void ProgramConfig::save() {
void ProgramConfig::init() {
brls::Logger::info("wiliwili {}", APPVersion::instance().git_tag);

// Needed for MPV
setlocale(LC_NUMERIC, "C");

// Set min_threads and max_threads of http thread pool
curl_global_init(CURL_GLOBAL_DEFAULT);
cpr::async::startup(THREAD_POOL_MIN_THREAD_NUM, THREAD_POOL_MAX_THREAD_NUM,
Expand Down

0 comments on commit 87756ae

Please sign in to comment.