[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
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