]> granicus.if.org Git - python/commitdiff
Patch #984714: Properly diagnose E_DECODE errors.
authorMartin v. Löwis <martin@v.loewis.de>
Wed, 21 Jul 2004 05:35:02 +0000 (05:35 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Wed, 21 Jul 2004 05:35:02 +0000 (05:35 +0000)
Backported to 2.3.

Python/pythonrun.c

index d89e5e991334844e1fbfbcfaaf61ec8345ea9420..4d03229f22967fa84d3b4b1f814b2e0d1ac2342e 100644 (file)
@@ -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);