##// END OF EJS Templates
encoding: colwidth input is in the local encoding
Matt Mackall -
r15142:17688287 default
parent child Browse files
Show More
@@ -139,7 +139,7 b' wide = (os.environ.get("HGENCODINGAMBIGU'
139 and "WFA" or "WF")
139 and "WFA" or "WF")
140
140
141 def colwidth(s):
141 def colwidth(s):
142 "Find the column width of a UTF-8 string for display"
142 "Find the column width of a string for display in the local encoding"
143 return ucolwidth(s.decode(encoding, 'replace'))
143 return ucolwidth(s.decode(encoding, 'replace'))
144
144
145 def ucolwidth(d):
145 def ucolwidth(d):
General Comments 0
You need to be logged in to leave comments. Login now