Martin v. Löwis added the comment:

I believe this behavior is correct wrt. RFC 3490. In the input, the last label 
is "c…", which is not empty. It is passed to ToASCII, which normalizes the 
ellipsis to "...". If UseSTD3ASCIIRules was true, conversion would fail as it 
yields "." (\x2E). However, Python choses not to set UseSTD3ASCIIRules (and 
instead leaves it to the DNS server to decide whether the name is valid).

I believe this is actually a bug in the RFC, which should ban "." from the the 
set of conversion results regardless of UseSTD3ASCIIRules. However, since this 
RFC is superseded, you probably won't get anybody to confirm this view.

----------
nosy: +loewis

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21103>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to