Closed passiomatic closed 1 year ago
Something like this in command_setup would work:
username, email, password = map(decode, [username, email, password])
The decode function should use the sys.stdin.encoding value to decode str to unicode glyphs. Note that checking UTF-8 encoded str for length > MIN_PASSWORD_LENGTH is not reliable. We should really convert str to unicode and then check for length.
decode
sys.stdin.encoding
Done while porting codebase to Python 3 583bd5c
Something like this in command_setup would work:
The
decode
function should use thesys.stdin.encoding
value to decode str to unicode glyphs. Note that checking UTF-8 encoded str for length > MIN_PASSWORD_LENGTH is not reliable. We should really convert str to unicode and then check for length.