[r22029]Use GrampsLocale.encoding to get the code set instead of locale

svn: r22046
This commit is contained in:
John Ralls 2013-04-20 23:23:12 +00:00
parent ea0a839ab1
commit 50e43f51c9

View File

@ -31,7 +31,6 @@ Table Object class for Gramps.
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from __future__ import unicode_literals from __future__ import unicode_literals
import time import time
import locale
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -46,11 +45,8 @@ from ..constfunc import cuni
# Localized constants # Localized constants
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
try: from ..const import GRAMPS_LOCALE as glocale
CODESET = locale.nl_langinfo(locale.CODESET) CODESET = glocale.encoding
except:
CODESET = locale.getpreferredencoding()
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# Table Object class # Table Object class