diff --git a/lib/utils/mu-test-utils.hh b/lib/utils/mu-test-utils.hh index aa3aee0c..b35beb07 100644 --- a/lib/utils/mu-test-utils.hh +++ b/lib/utils/mu-test-utils.hh @@ -145,7 +145,7 @@ struct TempTz { old_tz_ = set_tz(tz); else old_tz_ = {}; - mu_debug("timezone '{}' {}available", tz, old_tz_ ? "": "not"); + mu_debug("timezone '{}' {}available", tz, old_tz_ ? "": "not "); } ~TempTz() { if (old_tz_) { diff --git a/mu/mu-cmd-view.cc b/mu/mu-cmd-view.cc index 81244a99..1e072c3b 100644 --- a/mu/mu-cmd-view.cc +++ b/mu/mu-cmd-view.cc @@ -211,6 +211,7 @@ Mu::mu_cmd_view(const Options& opts) #include /* Definition of AT_* constants */ #include #include +#include #include "utils/mu-test-utils.hh" static constexpr std::string_view test_msg = @@ -249,6 +250,7 @@ test_view_plain() g_test_skip("timezone not available"); return; } + setlocale(LC_ALL, "C"); auto res = run_command({MU_PROGRAM, "view", msgpath}); assert_valid_command(res); @@ -274,6 +276,7 @@ test_view_html() g_test_skip("timezone not available"); return; } + setlocale(LC_ALL, "C"); auto res = run_command({MU_PROGRAM, "view", "--format=html", msgpath}); assert_valid_command(res); @@ -299,6 +302,7 @@ test_view_sexp() g_test_skip("timezone not available"); return; } + setlocale(LC_ALL, "C"); auto res = run_command({MU_PROGRAM, "view", "--format=sexp", msgpath}); assert_valid_command(res);