From 63430a1ce34c6593599bfbc187bca7cdfee732a2 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Tue, 23 Feb 2010 13:43:21 +0000 Subject: [PATCH] Fix of issue 3534. svn: r14444 --- src/gui/editors/displaytabs/gallerytab.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/editors/displaytabs/gallerytab.py b/src/gui/editors/displaytabs/gallerytab.py index bc9103f73..b32fdd43c 100644 --- a/src/gui/editors/displaytabs/gallerytab.py +++ b/src/gui/editors/displaytabs/gallerytab.py @@ -38,6 +38,8 @@ import urlparse import gtk import pango import os +import sys +import urllib import gobject #------------------------------------------------------------------------- @@ -458,6 +460,7 @@ class GalleryTab(ButtonTab, DbGUIElement): protocol, site, mfile, j, k, l = urlparse.urlparse(d) if protocol == "file": name = Utils.fix_encoding(mfile) + name = unicode(urllib.url2pathname(name.encode(sys.getfilesystemencoding()))) mime = gen.mime.get_type(name) if not gen.mime.is_valid_type(mime): return