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

svn: r22029
This commit is contained in:
John Ralls 2013-04-20 23:09:21 +00:00
parent 467a9b1c43
commit b7f6055af8

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