Skip to content

Commit

Permalink
Reorder locale names
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-easterbrook committed Dec 27, 2023
1 parent 5b4158a commit e8209b7
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 @@ -117,7 +117,7 @@ def test_localisation(self):
self.assertEqual(exiv2.exvGettext(str_en), str_en)
# set German locale
if sys.platform == 'linux':
for name in ('de_DE', 'de_DE.utf8', 'de_DE.UTF-8', 'German'):
for name in ('de_DE.UTF-8', 'de_DE.utf8', 'de_DE', 'German'):
try:
locale.setlocale(locale.LC_MESSAGES, name)
break
Expand Down

0 comments on commit e8209b7

Please sign in to comment.