diff Python/pythonrun.c @ 32781:caaef302f1e3 legacy-trunk

Patch #984714: Properly diagnose E_DECODE errors. Backported to 2.3.
author Martin v. Löwis <martin@v.loewis.de>
date Wed, 21 Jul 2004 05:35:02 +0000
parents 78bd25b42d46
children de804edf8bcd
line wrap: on
line diff
--- a/Python/pythonrun.c	Wed Jul 21 03:36:52 2004 +0000
+++ b/Python/pythonrun.c	Wed Jul 21 05:35:02 2004 +0000
@@ -1471,6 +1471,9 @@
 				break;
 			}
 		}
+		if (msg == NULL)
+			msg = "unknown decode error";
+		break;
 	}
 	default:
 		fprintf(stderr, "error=%d\n", err->error);