Skip to content

Commit

Permalink
common: Force reset the LANG related envars in test-locale
Browse files Browse the repository at this point in the history
Force reset the LANG related envars in test-locale. This should
force the setlocale() calls to take effect and not anything
in the environment running the tests.

Closes #5461
Reviewed-by: Peter <petervo@redhat.com>
  • Loading branch information
stefwalter authored and petervo committed Nov 23, 2016
1 parent 2b695a0 commit 408c8fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/test-locale.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ main (int argc,
gchar *name;
gint i;

g_unsetenv ("LANG");
g_unsetenv ("LC_ALL");
g_unsetenv ("LC_MESSAGES");

bindtextdomain ("test", BUILDDIR "/src/common/mock-locale");
cockpit_test_init (&argc, &argv);

Expand Down

0 comments on commit 408c8fb

Please sign in to comment.