From b7f6055af8b3cbc7c811e152978e2114869e48d3 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sat, 20 Apr 2013 23:09:21 +0000 Subject: [PATCH] Use GrampsLocale.encoding to get the code set instead of locale svn: r22029 --- 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