Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f428aef

Browse files
author
unknown
committed
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).
1 parent 3156956 commit f428aef

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Mac/Python/macglue.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,11 @@ char *PyMac_getscript()
221221
else
222222
return "mac-roman";
223223
break;
224+
#if 0
225+
/* We don't have a codec for this, so don't return it */
224226
case smJapanese:
225227
return "mac-japan";
228+
#endif
226229
case smGreek:
227230
return "mac-greek";
228231
case smCyrillic:
@@ -467,7 +470,7 @@ PyObject *
467470
PyMac_GetOSErrException()
468471
{
469472
if (PyMac_OSErrException == NULL)
470-
PyMac_OSErrException = PyString_FromString("Mac OS Error");
473+
PyMac_OSErrException = PyString_FromString("MacOS.Error");
471474
return PyMac_OSErrException;
472475
}
473476

0 commit comments

Comments
 (0)