summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-07-21 05:35:02 +0000
committerMartin v. Löwis <martin@v.loewis.de>2004-07-21 05:35:02 +0000
commit26c737c522a742443cf73c15b7903bed5d91695d (patch)
treea7f90d7204e7e37b515ad7fa7b4e4a76950b54a0 /Python/pythonrun.c
parentaff1688ee5cdb545c21a57ff6f2a5dbaa748f76b (diff)
downloadcpython-26c737c522a742443cf73c15b7903bed5d91695d.tar.gz
Patch #984714: Properly diagnose E_DECODE errors.
Backported to 2.3.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c3
1 files changed, 3 insertions, 0 deletions
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);