Skip to content

Commit

Permalink
Add more locale name variants
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-easterbrook committed Dec 27, 2023
1 parent 2ce41c4 commit b31d9df
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 @@ -114,7 +114,7 @@ def test_localisation(self):
str_de = 'Die Eingabedaten konnten nicht gelesen werden.'
old_locale = locale.setlocale(locale.LC_ALL, None)
self.assertEqual(exiv2.exvGettext(str_en), str_en)
for name in ('de_DE.utf8', 'German'):
for name in ('de_DE.utf8', 'de_DE.UTF-8', 'de_DE', 'German'):
try:
locale.setlocale(locale.LC_ALL, name)
break
Expand Down

0 comments on commit b31d9df

Please sign in to comment.