comparison 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
comparison
equal deleted inserted replaced
32778:7af695bc5480 32781:caaef302f1e3
1469 if (u != NULL) { 1469 if (u != NULL) {
1470 msg = PyString_AsString(u); 1470 msg = PyString_AsString(u);
1471 break; 1471 break;
1472 } 1472 }
1473 } 1473 }
1474 if (msg == NULL)
1475 msg = "unknown decode error";
1476 break;
1474 } 1477 }
1475 default: 1478 default:
1476 fprintf(stderr, "error=%d\n", err->error); 1479 fprintf(stderr, "error=%d\n", err->error);
1477 msg = "unknown parsing error"; 1480 msg = "unknown parsing error";
1478 break; 1481 break;