From 50e43f51c9e5b4a53e809290b736987385ee1986 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sat, 20 Apr 2013 23:23:12 +0000 Subject: [PATCH] [r22029]Use GrampsLocale.encoding to get the code set instead of locale svn: r22046 --- gramps/gen/lib/tableobj.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gramps/gen/lib/tableobj.py b/gramps/gen/lib/tableobj.py index 87ab9060a..6f67225ab 100644 --- a/gramps/gen/lib/tableobj.py +++ b/gramps/gen/lib/tableobj.py @@ -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