diff options
| -rw-r--r-- | src/lib/i18n_setup_linux.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/i18n_setup_linux.cc b/src/lib/i18n_setup_linux.cc index 2fa148e26..37207e29d 100644 --- a/src/lib/i18n_setup_linux.cc +++ b/src/lib/i18n_setup_linux.cc @@ -38,12 +38,11 @@ dcpomatic::mo_path() void dcpomatic::setup_i18n(string forced_language) { - forced_language += ".UTF8"; - if (!forced_language.empty()) { /* Override our environment forced_language. Note that the caller must not free the string passed into putenv(). */ + forced_language += ".UTF8"; string s = fmt::format("LANGUAGE={}", forced_language); putenv(strdup(s.c_str())); s = fmt::format("LANG={}", forced_language); |
