Commit f428aef3 authored by unknown's avatar unknown

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).
parent 31569561
...@@ -221,8 +221,11 @@ char *PyMac_getscript() ...@@ -221,8 +221,11 @@ char *PyMac_getscript()
else else
return "mac-roman"; return "mac-roman";
break; break;
#if 0
/* We don't have a codec for this, so don't return it */
case smJapanese: case smJapanese:
return "mac-japan"; return "mac-japan";
#endif
case smGreek: case smGreek:
return "mac-greek"; return "mac-greek";
case smCyrillic: case smCyrillic:
...@@ -467,7 +470,7 @@ PyObject * ...@@ -467,7 +470,7 @@ PyObject *
PyMac_GetOSErrException() PyMac_GetOSErrException()
{ {
if (PyMac_OSErrException == NULL) if (PyMac_OSErrException == NULL)
PyMac_OSErrException = PyString_FromString("Mac OS Error"); PyMac_OSErrException = PyString_FromString("MacOS.Error");
return PyMac_OSErrException; return PyMac_OSErrException;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment