Ensure en_US encoding is UTF-8

svn: r22832
This commit is contained in:
John Ralls 2013-08-09 19:58:29 +00:00
parent 615fd34957
commit 57af50e162

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'))