changeset 15142:176882876780

encoding: colwidth input is in the local encoding
author Matt Mackall <mpm@selenic.com>
date Wed, 21 Sep 2011 13:00:41 -0500
parents 16dc9a32ca04
children 16c129b0f465
files mercurial/encoding.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):