From 45eee5e618af30e893320b9245aaf4e5f3072753 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 12 Mar 2026 01:00:51 +0100 Subject: Fix language forcing. We'd always try to do it, even if the passed-in string was empty, which must surely be wrong... --- src/lib/i18n_setup_linux.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3