encoding: colwidth input is in the local encoding
authorMatt Mackall <mpm@selenic.com>
Wed, 21 Sep 2011 13:00:41 -0500
changeset 15142 176882876780
parent 15141 16dc9a32ca04
child 15143 16c129b0f465
encoding: colwidth input is in the local encoding
mercurial/encoding.py
--- a/mercurial/encoding.py	Mon Sep 19 15:58:03 2011 -0700
+++ b/mercurial/encoding.py	Wed Sep 21 13:00:41 2011 -0500
@@ -139,7 +139,7 @@
         and "WFA" or "WF")
 
 def colwidth(s):
-    "Find the column width of a UTF-8 string for display"
+    "Find the column width of a string for display in the local encoding"
     return ucolwidth(s.decode(encoding, 'replace'))
 
 def ucolwidth(d):