Fix of issue 3935. Wrong encoding in Windows.

svn: r15360
This commit is contained in:
Peter Landgren 2010-05-08 14:30:01 +00:00
parent 937af27eaf
commit a19abb267f

View File

@ -1354,7 +1354,7 @@ def navigation_label(db, nav_type, handle):
label = " ".join(label.split())
# When strings are cut, make sure they are unicode
#otherwise you may end of with cutting within an utf-8 sequence
label = get_unicode_path(label)
label = unicode(label)
if len(label) > 40:
label = label[:40] + "..."