# HG changeset patch
# User Sune Foldager <[email protected]>
# Date 1258017618 -3600
# Branch stable
# Node ID dc145819f13c4081954324b08499abd6a2a62e8d
# Parent  1113418ed4f2daae1caf81329961f68470875ea6
follow-up fix for 778b2ea72507

One case wasn't fixed correctly. While it wouldn't crash GTK anymore, it would
still lead to garbled display.

diff --git a/tortoisehg/hgtk/csinfo.py b/tortoisehg/hgtk/csinfo.py
--- a/tortoisehg/hgtk/csinfo.py
+++ b/tortoisehg/hgtk/csinfo.py
@@ -221,10 +221,9 @@
                 return hglib.toutf(ctx.description().replace('\0', ''))
             elif item == 'summary':
                 value = ctx.description().replace('\0', '').split('\n')[0]
-                value = hglib.tounicode(value[:80])
                 if len(value) == 0:
                     return  None
-                return hglib.toutf(value)
+                return hglib.toutf(hglib.tounicode(value)[:80])
             elif item == 'user':
                 return hglib.toutf(ctx.user())
             elif item == 'dateage':

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to