From f428aef3b24e6839168f55dd6238739b4bbfb9fa Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 4 Jul 2001 22:36:27 +0000 Subject: Don't promise mac-japanese encoding as we don't have a codec for it. Return a reasonable name for the general macos exception (MacOS.Error). --- Mac/Python/macglue.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Mac/Python/macglue.c b/Mac/Python/macglue.c index 9df41fb..052c1ee 100644 --- a/Mac/Python/macglue.c +++ b/Mac/Python/macglue.c @@ -221,8 +221,11 @@ char *PyMac_getscript() else return "mac-roman"; break; +#if 0 + /* We don't have a codec for this, so don't return it */ case smJapanese: return "mac-japan"; +#endif case smGreek: return "mac-greek"; case smCyrillic: @@ -467,7 +470,7 @@ PyObject * PyMac_GetOSErrException() { if (PyMac_OSErrException == NULL) - PyMac_OSErrException = PyString_FromString("Mac OS Error"); + PyMac_OSErrException = PyString_FromString("MacOS.Error"); return PyMac_OSErrException; } -- cgit v0.12