passiomatic / coldsweat

Web RSS aggregator and reader compatible with the Fever API
MIT License
145 stars 21 forks source link

Allow to specify credentials with non-ASCII characters during setup #82

Closed passiomatic closed 1 year ago

passiomatic commented 9 years 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.

passiomatic commented 1 year ago

Done while porting codebase to Python 3 583bd5c