Use GrampsLocale.encoding to get the code set instead of locale
svn: r22029
This commit is contained in:
parent
467a9b1c43
commit
b7f6055af8
@ -31,7 +31,6 @@ Table Object class for Gramps.
|
||||
#-------------------------------------------------------------------------
|
||||
from __future__ import unicode_literals
|
||||
import time
|
||||
import locale
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -46,11 +45,8 @@ from ..constfunc import cuni
|
||||
# Localized constants
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
try:
|
||||
CODESET = locale.nl_langinfo(locale.CODESET)
|
||||
except:
|
||||
CODESET = locale.getpreferredencoding()
|
||||
|
||||
from ..const import GRAMPS_LOCALE as glocale
|
||||
CODESET = glocale.encoding
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Table Object class
|
||||
|
Loading…
Reference in New Issue
Block a user