Better handling of path with non ascii in Windows.

svn: r14412
This commit is contained in:
Peter Landgren 2010-02-18 16:21:01 +00:00
parent 877359d727
commit 21cf179918

View File

@ -38,6 +38,7 @@ Geo View
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from gen.ggettext import gettext as _ from gen.ggettext import gettext as _
import os import os
import sys
import urlparse import urlparse
import const import const
import operator import operator
@ -104,7 +105,8 @@ from htmlrenderer import HtmlView
# Constants # Constants
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
GEOVIEW_SUBPATH = Utils.get_empty_tempdir('geoview') #covert to unicode for better hadnling of path in Windows
GEOVIEW_SUBPATH = unicode(Utils.get_empty_tempdir('geoview'), sys.getfilesystemencoding())
NB_MARKERS_PER_PAGE = 200 NB_MARKERS_PER_PAGE = 200
#------------------------------------------------------------------------- #-------------------------------------------------------------------------