--- a/mercurial/encoding.py Mon Dec 26 15:30:43 2011 +0100
+++ b/mercurial/encoding.py Mon Dec 26 15:01:06 2011 +0100
@@ -105,7 +105,7 @@
return localstr(u.encode('UTF-8'), r)
except LookupError, k:
- raise error.Abort("%s, please check your locale settings" % k)
+ raise error.Abort(k, hint="please check your locale settings")
except UnicodeDecodeError:
pass
u = s.decode("utf-8", "replace") # last ditch
@@ -132,7 +132,7 @@
sub = s[max(0, inst.start - 10):inst.start + 10]
raise error.Abort("decoding near '%s': %s!" % (sub, inst))
except LookupError, k:
- raise error.Abort("%s, please check your locale settings" % k)
+ raise error.Abort(k, hint="please check your locale settings")
# How to treat ambiguous-width characters. Set to 'wide' to treat as wide.
wide = (os.environ.get("HGENCODINGAMBIGUOUS", "narrow") == "wide"