Make smartctl to ignore locale
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run

This commit is contained in:
Andrea Mazzoleni 2026-03-19 16:09:57 +01:00
parent 3696bccf68
commit ef3572ea73
2 changed files with 6 additions and 0 deletions

View file

@ -177,6 +177,9 @@ void os_init(int opt)
}
exedir_init();
/* set LC_ALL=C to make smartctl ignoring the locale when printing info */
_wputenv_s(L"LC_ALL", L"C");
}
void os_done(void)

View file

@ -2404,6 +2404,9 @@ void os_init(int opt)
}
#endif
/* set LC_ALL=C to make smartctl ignoring the locale when printing info */
setenv("LC_ALL", "C", 1);
(void)opt;
}