Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:

There are certain encodings as I went through the file Lib/encodings/aliases.py 
 where there are all digit items that doesn't correspond to cpXXXX sequence. I 
think the search function is used not only for encodings that start with 'cp' 
and thus adding the logic might result in checks for extra cases.

Sample cases : 

'936'                : 'gbk'
'8859'               : 'latin_1'
'646'                : 'ascii'

I also have limited knowledge on working through encodings/__init__.py so 
correct me if I am wrong on the above.

Thanks.

----------

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

Reply via email to