]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Allow '@' for ' ' in uuencoded files.
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 14 Nov 1995 10:35:19 +0000 (10:35 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 14 Nov 1995 10:35:19 +0000 (10:35 +0000)
Modules/binascii.c

index cd806723d4978f1b898a4bceb73aa652be1394f7..8d4784033afe00c4b4bba2f53db9718bb29952cb 100644 (file)
@@ -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;