Mercurial > hg-stable
changeset 45100:d50d922ca02b
debuginstall: don't translate encoding messages
While Microsoft trained us to read mojibake text, it doesn't make sense
to print mojibake messages when debugging the exact issue.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 09 Jul 2020 19:16:52 +0900 |
parents | de1d3f4246e9 |
children | 9e6b86a8f438 |
files | mercurial/debugcommands.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Wed Jul 15 10:34:59 2020 -0400 +++ b/mercurial/debugcommands.py Thu Jul 09 19:16:52 2020 +0900 @@ -1465,8 +1465,8 @@ fm = ui.formatter(b'debuginstall', opts) fm.startitem() - # encoding - fm.write(b'encoding', _(b"checking encoding (%s)...\n"), encoding.encoding) + # encoding might be unknown or wrong. don't translate these messages. + fm.write(b'encoding', b"checking encoding (%s)...\n", encoding.encoding) err = None try: codecs.lookup(pycompat.sysstr(encoding.encoding)) @@ -1476,7 +1476,7 @@ fm.condwrite( err, b'encodingerror', - _(b" %s\n (check that your locale is properly set)\n"), + b" %s\n (check that your locale is properly set)\n", err, )