diff options
Diffstat (limited to 'Python/mactoolboxglue.c')
-rw-r--r-- | Python/mactoolboxglue.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Python/mactoolboxglue.c b/Python/mactoolboxglue.c index 52ff00b..ef59900 100644 --- a/Python/mactoolboxglue.c +++ b/Python/mactoolboxglue.c @@ -37,6 +37,13 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ char *PyMac_getscript() { +#if TARGET_API_MAC_OSX + /* We cannot use GetSysFont because it requires the window manager + ** There are other APIs to query the default 8 bit encoding, but + ** I don't know about them (yet). + */ + return "ascii"; +#else int font, script, lang; font = 0; font = GetSysFont(); @@ -65,6 +72,7 @@ char *PyMac_getscript() default: return "ascii"; /* better than nothing */ } +#endif /* TARGET_API_MAC_OSX */ } /* Like strerror() but for Mac OS error numbers */ |