Skip to content

Commit

Permalink
Include encodig when setting locale
Browse files Browse the repository at this point in the history
Linux doesn't need it but MacOS does.
  • Loading branch information
jim-easterbrook committed Dec 26, 2023
1 parent cefb4f4 commit 548457a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 548457a

Please sign in to comment.