mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 12:44:34 +03:00
Set locale only once and do not override it later
This commit is contained in:

committed by
BenBE

parent
b76eaf187a
commit
4f7d48aa24
3
CRT.c
3
CRT.c
@ -725,9 +725,6 @@ void CRT_init(const int* delay, int colorScheme, bool allowUnicode) {
|
||||
CRT_colorScheme = COLORSCHEME_MONOCHROME;
|
||||
CRT_setColors(CRT_colorScheme);
|
||||
|
||||
/* initialize locale */
|
||||
setlocale(LC_CTYPE, "");
|
||||
|
||||
#ifdef HAVE_LIBNCURSESW
|
||||
if (allowUnicode && String_eq(nl_langinfo(CODESET), "UTF-8")) {
|
||||
CRT_utf8 = true;
|
||||
|
Reference in New Issue
Block a user