diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2004-07-21 05:35:02 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2004-07-21 05:35:02 (GMT) |
commit | c2632a5c34de3448fedc581a978a9a1924089fcd (patch) | |
tree | a3ba53f7cc465dc3e42ea1c585287a7e7f99d248 | |
parent | 21429932e4f1c31a25c943853eb6c968b5cf9a82 (diff) | |
download | cpython-c2632a5c34de3448fedc581a978a9a1924089fcd.zip cpython-c2632a5c34de3448fedc581a978a9a1924089fcd.tar.gz cpython-c2632a5c34de3448fedc581a978a9a1924089fcd.tar.bz2 |
Patch #984714: Properly diagnose E_DECODE errors.
Backported to 2.3.
-rw-r--r-- | Python/pythonrun.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index d89e5e9..4d03229 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); |