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-18.13:16:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I think if we can get a confirmation from @Prawin that adding an alias fixed the issue or a minimal test case then it will be helpful. The minimal I can come up with is as below :  

import codecs

# Fails without alias being added other cases like 1252 pass because of alias

assert codecs.encode('a', '874') == codecs.encode('a', 'cp874')

# Below assertion passes after search_function patch though alias is not added since I prepend cp in search_function

assert codecs.encode('a', '874') == codecs.encode('a', 'cp874')

Date User Action Args
2018-06-18 13:16:22xtreaksetrecipients: + xtreak, ronaldoussoren, vstinner, ezio.melotti, steven.daprano, serhiy.storchaka, winvinc
2018-06-18 13:16:22xtreaksetmessageid: <>
2018-06-18 13:16:22xtreaklinkissue33865 messages
2018-06-18 13:16:22xtreakcreate