From 548457a0ba1c40b51925d7a1fe283c09ce8a1bfb Mon Sep 17 00:00:00 2001 From: Jim Easterbrook Date: Tue, 26 Dec 2023 11:45:20 +0000 Subject: [PATCH] Include encodig when setting locale Linux doesn't need it but MacOS does. --- tests/test_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_types.py b/tests/test_types.py index dc86060b..72675b83 100644 --- a/tests/test_types.py +++ b/tests/test_types.py @@ -115,7 +115,7 @@ def test_localisation(self): old_locale = locale.setlocale(locale.LC_ALL, None) self.assertEqual(exiv2.exvGettext(str_en), str_en) try: - locale.setlocale(locale.LC_ALL, 'de_DE') + locale.setlocale(locale.LC_ALL, 'de_DE.utf8') except locale.Error: self.skipTest("failed to set locale") return