diff --git a/src/lib/fcitx-utils/i18nstring.cpp b/src/lib/fcitx-utils/i18nstring.cpp index da9dfdd60..3d78a18b4 100644 --- a/src/lib/fcitx-utils/i18nstring.cpp +++ b/src/lib/fcitx-utils/i18nstring.cpp @@ -12,6 +12,10 @@ #include "charutils.h" #include "misc.h" +#ifndef LC_MESSAGES +#define LC_MESSAGES LC_ALL +#endif + namespace fcitx { const std::string &I18NString::match(const std::string &locale_) const { std::string locale = locale_;