Read about our upcoming Code of Conduct on this issue

Commit ddc8ccbe authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

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.
parent de1d3f4246e9
......@@ -1465,8 +1465,8 @@ def debuginstall(ui, **opts):
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 @@ def debuginstall(ui, **opts):
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,
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment