mirror of https://github.com/odrling/Aegisub
Hacks for Mac, LC_CTYPE must be "" and a wxSafeYield breaks something during FrameMain construction
Originally committed to SVN as r5711.
This commit is contained in:
parent
301c11dcbf
commit
7f0bfcf315
|
@ -104,6 +104,10 @@ FrameMain::FrameMain (wxArrayString args)
|
||||||
// However LC_NUMERIC must be "C", otherwise some parsing fails.
|
// However LC_NUMERIC must be "C", otherwise some parsing fails.
|
||||||
setlocale(LC_NUMERIC, "C");
|
setlocale(LC_NUMERIC, "C");
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __APPLE__
|
||||||
|
// Apple's wprintf() and family breaks with CTYPE set to "C"
|
||||||
|
setlocale(LC_CTYPE, "");
|
||||||
|
#endif
|
||||||
|
|
||||||
// Set application's frame
|
// Set application's frame
|
||||||
AegisubApp::Get()->frame = this;
|
AegisubApp::Get()->frame = this;
|
||||||
|
@ -122,7 +126,9 @@ FrameMain::FrameMain (wxArrayString args)
|
||||||
wxPNGHandler *png = new wxPNGHandler;
|
wxPNGHandler *png = new wxPNGHandler;
|
||||||
wxImage::AddHandler(png);
|
wxImage::AddHandler(png);
|
||||||
|
|
||||||
|
#ifndef __APPLE
|
||||||
wxSafeYield();
|
wxSafeYield();
|
||||||
|
#endif
|
||||||
|
|
||||||
// Storage for subs-file-local scripts
|
// Storage for subs-file-local scripts
|
||||||
#ifdef WITH_AUTOMATION
|
#ifdef WITH_AUTOMATION
|
||||||
|
|
Loading…
Reference in New Issue