Submitter | Augie Fackler |
---|---|
Date | May 28, 2017, 8:59 p.m. |
Message ID | <99ca209bad39793fa60f.1496005143@imladris.local> |
Download | mbox | patch |
Permalink | /patch/21005/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/encoding.py b/mercurial/encoding.py --- a/mercurial/encoding.py +++ b/mercurial/encoding.py @@ -194,8 +194,8 @@ if not _nativeenviron: 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"