From 3dc8deebb799a846dd1fa02baae95d9ff8c1efb0 Mon Sep 17 00:00:00 2001 From: bilel zenned <33394991+lisn0@users.noreply.github.com> Date: Sat, 12 Oct 2024 19:36:12 +0100 Subject: [PATCH] Correct BinHex 4.0 alphabet according to specifications This pull request addresses the inconsistency between this source code and the BinHex 4.0 specifications https://files.stairways.com/other/binhex-40-specs-info.txt --- Modules/binascii.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/binascii.c b/Modules/binascii.c index 6bb01d148b6faa..213bb619045367 100644 --- a/Modules/binascii.c +++ b/Modules/binascii.c @@ -102,7 +102,7 @@ static const unsigned char table_a2b_base64[] = { #define BASE64_MAXBIN ((PY_SSIZE_T_MAX - 3) / 2) static const unsigned char table_b2a_base64[] = -"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; +"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz012345689+/"; static const unsigned short crctab_hqx[256] = {