From: Martin v. Löwis Date: Wed, 21 Jul 2004 05:35:02 +0000 (+0000) Subject: Patch #984714: Properly diagnose E_DECODE errors. X-Git-Tag: v2.4a2~168 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2632a5c34de3448fedc581a978a9a1924089fcd;p=python Patch #984714: Properly diagnose E_DECODE errors. Backported to 2.3. --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index d89e5e9913..4d03229f22 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1471,6 +1471,9 @@ err_input(perrdetail *err) break; } } + if (msg == NULL) + msg = "unknown decode error"; + break; } default: fprintf(stderr, "error=%d\n", err->error);