# HG changeset patch # User Matt Mackall # Date 2011-09-21 18:00:41 # Node ID 17688287678051a35f386e4c27fabab8490b0cf1 # Parent 16dc9a32ca04510e5796fece99393fdfc96a5932 encoding: colwidth input is in the local encoding diff --git a/mercurial/encoding.py b/mercurial/encoding.py --- a/mercurial/encoding.py +++ b/mercurial/encoding.py @@ -139,7 +139,7 @@ wide = (os.environ.get("HGENCODINGAMBIGU 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):