changeset 32529:0ec17613582c

encoding: make wide character class list a sysstr That's what east_asian_width returns, so just match it.
author Augie Fackler <raf@durin42.com>
date Sun, 28 May 2017 13:27:29 -0400
parents 9f56d462634c
children 3f0936b2cea9
files mercurial/encoding.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/encoding.py	Sun May 28 14:02:14 2017 -0400
+++ b/mercurial/encoding.py	Sun May 28 13:27:29 2017 -0400
@@ -194,8 +194,8 @@
                    for k, v in os.environ.items())  # re-exports
 
 # How to treat ambiguous-width characters. Set to 'wide' to treat as wide.
-wide = (environ.get("HGENCODINGAMBIGUOUS", "narrow") == "wide"
-        and "WFA" or "WF")
+wide = _sysstr(environ.get("HGENCODINGAMBIGUOUS", "narrow") == "wide"
+               and "WFA" or "WF")
 
 def colwidth(s):
     "Find the column width of a string for display in the local encoding"