Fix detection of Japanese locales using $LC_MESSAGES

This has been broken since it was implemented in version 5.0.0.
This commit is contained in:
Yoichiro Takahashi 2022-01-24 20:19:05 +09:00 committed by Marco d'Itri
parent ce897dbc10
commit fe3e14e372

View File

@ -1135,7 +1135,7 @@ int japanese_locale(void)
{
char *lang;
lang = getenv("LC_MESSAGE");
lang = getenv("LC_MESSAGES");
if (lang) {
if (strneq(lang, "ja", 2))
return 0;