From 21cf17991837a7b3e41cbe0a9f46b45580caec08 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Thu, 18 Feb 2010 16:21:01 +0000 Subject: [PATCH] Better handling of path with non ascii in Windows. svn: r14412 --- src/plugins/view/geoview.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/view/geoview.py b/src/plugins/view/geoview.py index 1924b05c4..37b61b694 100644 --- a/src/plugins/view/geoview.py +++ b/src/plugins/view/geoview.py @@ -38,6 +38,7 @@ Geo View #------------------------------------------------------------------------- from gen.ggettext import gettext as _ import os +import sys import urlparse import const import operator @@ -104,7 +105,8 @@ from htmlrenderer import HtmlView # 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 #-------------------------------------------------------------------------