This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients ezio.melotti, ronaldoussoren, serhiy.storchaka, steven.daprano, vstinner, winvinc, xtreak
Date 2018-06-16.05:14:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1529126095.94.0.56676864532.issue33865@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-06-16 05:14:56xtreaksetrecipients: + xtreak, ronaldoussoren, vstinner, ezio.melotti, steven.daprano, serhiy.storchaka, winvinc
2018-06-16 05:14:55xtreaksetmessageid: <1529126095.94.0.56676864532.issue33865@psf.upfronthosting.co.za>
2018-06-16 05:14:55xtreaklinkissue33865 messages
2018-06-16 05:14:55xtreakcreate