From: Jack Jansen Date: Tue, 14 Nov 1995 10:35:19 +0000 (+0000) Subject: Allow '@' for ' ' in uuencoded files. X-Git-Tag: v1.4b1~479 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d9579707f353728e7d3e6aa9b9d44b5bb07071d;p=thirdparty%2FPython%2Fcpython.git Allow '@' for ' ' in uuencoded files. --- diff --git a/Modules/binascii.c b/Modules/binascii.c index cd806723d497..8d4784033afe 100644 --- a/Modules/binascii.c +++ b/Modules/binascii.c @@ -227,8 +227,11 @@ binascii_a2b_uu(self, args) */ this_ch = 0; } else { - /* Check the character for legality */ - if ( this_ch < ' ' || this_ch > (' ' + 63)) { + /* Check the character for legality + ** The 64 in stead of the expected 63 is because there are a few + ** uuencodes out there that use '@' as zero in stead of space. + */ + if ( this_ch < ' ' || this_ch > (' ' + 64)) { PyErr_SetString(Error, "Illegal char"); Py_DECREF(rv); return NULL;