diff -r dadbd01f9393 -r e614eeb794f9 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Thu Dec 03 13:36:24 2020 -0500 +++ b/mercurial/debugcommands.py Thu Dec 03 18:42:23 2020 +0900 @@ -3787,9 +3787,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)