[issue14844] netrc does not handle accentuated characters
New submission from Raphaël Droz : Accentuated characters are not accepted in password. While it (unicode) was quickly talked about in issue557704 it appears that issue1170 aimed to solve this by making shlex unicode-compatible but it does not seem to be the case (at least with python 3.2 in the netrc use-case). On a side note : - a blank line between two comment lines and - lines starting with a '#' *not* followed by a space fail too (shells supports both of them) -- components: Library (Lib) messages: 161016 nosy: drzraf priority: normal severity: normal status: open title: netrc does not handle accentuated characters versions: Python 3.2 ___ Python tracker <http://bugs.python.org/issue14844> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14844] netrc does not handle accentuated characters
Raphaël Droz added the comment: $ python -c "import netrc; print netrc.netrc('/dev/stdin').authenticators('a')"<<<"machine a login b password c" ('b', None, 'c') $ python -c "import netrc; print netrc.netrc('/dev/stdin').authenticators('a')"<<<"machine a login b password héhé" Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.7/netrc.py", line 32, in __init__ self._parse(file, fp) File "/usr/lib/python2.7/netrc.py", line 94, in _parse file, lexer.lineno) netrc.NetrcParseError: bad follower token '\xc3' (/dev/stdin, line 1) -- ___ Python tracker <http://bugs.python.org/issue14844> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com