mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Make smartctl to ignore locale
This commit is contained in:
parent
3696bccf68
commit
ef3572ea73
2 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue