diff -r 9e24b3d8e896 -r d6afa9c149c3 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Fri Dec 11 15:25:11 2020 +0100 +++ b/mercurial/debugcommands.py Sun Dec 13 18:29:22 2020 -0800 @@ -3850,9 +3850,7 @@ def debuguigetpass(ui, prompt=b''): """show prompt to type password""" r = ui.getpass(prompt) - if r is not None: - r = encoding.strtolocal(r) - else: + if r is None: r = b"" ui.writenoi18n(b'response: %s\n' % r)