Make use of new module constfunc.

svn: r14275
This commit is contained in:
Peter Landgren 2010-02-08 08:27:45 +00:00
parent bd3120bcb0
commit 0599a90583

View File

@ -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(