From 0599a905836ef729adcd996118e4f9d716ba8552 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Mon, 8 Feb 2010 08:27:45 +0000 Subject: [PATCH] Make use of new module constfunc. svn: r14275 --- src/Utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Utils.py b/src/Utils.py index 93882a73d..11328e93d 100644 --- a/src/Utils.py +++ b/src/Utils.py @@ -49,7 +49,8 @@ import gen.lib import Errors from GrampsLocale import codeset -from const import TEMP_DIR, USER_HOME, WINDOWS, MACOS, LINUX, GRAMPS_UUID +from const import TEMP_DIR, USER_HOME, GRAMPS_UUID +import constfunc from gen.ggettext import sgettext as _ #------------------------------------------------------------------------- @@ -239,7 +240,7 @@ def encodingdefs(): """ pass -if platform.system() in WINDOWS: +if constfunc.win(): # python encoding is ascii, but C functions need to recieve the # windows codeset, so convert over to it conv_utf8_tosrtkey = lambda x: locale.strxfrm(x.decode("utf-8").encode(