diff options
author | James Booth <boothj5@gmail.com> | 2017-01-26 00:52:13 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2017-01-26 00:52:13 +0000 |
commit | 6679b890a052ccda92e086d94a9f253403b24a13 (patch) | |
tree | 644b131dd78c3afaf9d45f4899e7e2bbb72c5034 /tests/unittests/unittests.c | |
parent | b712820c999e824771c683175ed41b392328ffa0 (diff) | |
download | profani-tty-6679b890a052ccda92e086d94a9f253403b24a13.tar.gz |
Fix multibyte chars in prof_occurrences
issue #901
Diffstat (limited to 'tests/unittests/unittests.c')
-rw-r--r-- | tests/unittests/unittests.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unittests/unittests.c b/tests/unittests/unittests.c index e0a5dd34..71bdf1b1 100644 --- a/tests/unittests/unittests.c +++ b/tests/unittests/unittests.c @@ -6,6 +6,7 @@ #include <setjmp.h> #include <cmocka.h> #include <sys/stat.h> +#include <locale.h> #include "config.h" #include "xmpp/chat_session.h" @@ -37,6 +38,7 @@ #include "test_plugins_disco.h" int main(int argc, char* argv[]) { + setlocale(LC_ALL, ""); const UnitTest all_tests[] = { unit_test(replace_one_substr), |