From: unknown Date: Wed, 4 Jul 2001 22:36:27 +0000 (+0000) Subject: Don't promise mac-japanese encoding as we don't have a codec for it. X-Git-Tag: v2.2a3~1347 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f428aef3b24e6839168f55dd6238739b4bbfb9fa;p=thirdparty%2FPython%2Fcpython.git 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). --- diff --git a/Mac/Python/macglue.c b/Mac/Python/macglue.c index 9df41fbf1e84..052c1ee91584 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; }