mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-26 17:43:59 +00:00
PICARD-539: ensure we append preferred encoding to normalized locale
http://tickets.musicbrainz.org/browse/PICARD-539
This commit is contained in:
@@ -14,7 +14,7 @@ def setup_gettext(localedir, ui_language=None, logdebug=None):
|
||||
os.environ['LANGUAGE'] = ''
|
||||
os.environ['LANG'] = ui_language
|
||||
try:
|
||||
current_locale = locale.normalize(ui_language)
|
||||
current_locale = locale.normalize(ui_language + '.' + locale.getpreferredencoding())
|
||||
locale.setlocale(locale.LC_ALL, current_locale)
|
||||
except:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user