diff --git a/src/env_dispatch.cpp b/src/env_dispatch.cpp index 896803cf9..4181743e4 100644 --- a/src/env_dispatch.cpp +++ b/src/env_dispatch.cpp @@ -60,30 +60,17 @@ #define DEFAULT_TERM2 "dumb" /// List of all locale environment variable names that might trigger (re)initializing the locale -/// subsystem. +/// subsystem. These are only the variables we're possibly interested in. static const wcstring locale_variables[] = {L"LANG", + L"LANGUAGE", L"LC_ALL", L"LC_COLLATE", L"LC_CTYPE", L"LC_MESSAGES", - L"LC_MONETARY", L"LC_NUMERIC", L"LC_TIME", -#if defined(_GNU_SOURCE) && defined(__GLIBC__) && defined(__GLIBC_PREREQ) -#if __GLIBC_PREREQ(2,2) - L"LANGUAGE", /* GNU libc extensions start */ - L"LC_ADDRESS", - L"LC_IDENTIFICATION", - L"LC_MEASUREMENT", - L"LC_NAME", - L"LC_PAPER", - L"LC_TELEPHONE", - L"LOCPATH", /* GNU libc extensions end */ -#endif // __GLIBC_PREREQ(2,2) -#endif // defined(_GNU_SOURCE) && defined(__GLIBC__) && defined(__GLIBC_PREREQ) - L"fish_allow_singlebyte_locale" - }; - + L"fish_allow_singlebyte_locale", + L"LOCPATH"}; /// List of all curses environment variable names that might trigger (re)initializing the curses /// subsystem.