From 7f0bfcf31500983cefd681e3cf9e03f3af87d1cc Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Sun, 2 Oct 2011 03:07:08 +0000 Subject: [PATCH] Hacks for Mac, LC_CTYPE must be "" and a wxSafeYield breaks something during FrameMain construction Originally committed to SVN as r5711. --- aegisub/src/frame_main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aegisub/src/frame_main.cpp b/aegisub/src/frame_main.cpp index 48e932984..aea05318e 100644 --- a/aegisub/src/frame_main.cpp +++ b/aegisub/src/frame_main.cpp @@ -104,6 +104,10 @@ FrameMain::FrameMain (wxArrayString args) // However LC_NUMERIC must be "C", otherwise some parsing fails. setlocale(LC_NUMERIC, "C"); #endif +#ifdef __APPLE__ + // Apple's wprintf() and family breaks with CTYPE set to "C" + setlocale(LC_CTYPE, ""); +#endif // Set application's frame AegisubApp::Get()->frame = this; @@ -122,7 +126,9 @@ FrameMain::FrameMain (wxArrayString args) wxPNGHandler *png = new wxPNGHandler; wxImage::AddHandler(png); +#ifndef __APPLE wxSafeYield(); +#endif // Storage for subs-file-local scripts #ifdef WITH_AUTOMATION