Make smartctl to ignore locale

This commit is contained in:
Andrea Mazzoleni 2026-03-19 16:09:57 +01:00
parent 3696bccf68
commit 1ef512925a
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;
}