[r22832]Ensure en_US encoding is UTF-8

svn: r22835
This commit is contained in:
John Ralls 2013-08-09 20:01:37 +00:00
parent 6473f22f17
commit 82ea4e8685

View File

@ -434,7 +434,7 @@ class GrampsLocale(object):
# a lot of locales.
lang = locale.normalize(self.language[0] if self.language[0] else 'C')
check_lang = lang.split('.')
if not check_lang[0] in ('C', 'en', 'en_US'):
if not check_lang[0] in ('C', 'en'):
if len(check_lang) < 2 or check_lang[1] not in ("utf-8", "UTF-8"):
lang = '.'.join((check_lang[0], 'UTF-8'))