diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-06 13:23:28 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-06 13:23:28 +0000 |
| commit | 3a51cc23de37ff0821009af780ef56e0e28394f7 (patch) | |
| tree | 7d1a3b5ce730ac5c046b995e8157273333df1df8 /src/lib | |
| parent | bede7ad707193f6c3be4fcba622bb516bb068644 (diff) | |
Override LC_ALL as well as LANGUAGE and LANG when forcing locale.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/util.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index 32b1805be..edb202df2 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -350,6 +350,8 @@ dcpomatic_setup_gettext_i18n (string lang) putenv (cmd); snprintf (cmd, sizeof(cmd), "LANG=%s", lang.c_str ()); putenv (cmd); + snprintf (cmd, sizeof(cmd), "LC_ALL=%s", lang.c_str ()); + putenv (cmd); } setlocale (LC_ALL, ""); |
