mtkaz Posted June 26, 2011 Report Share Posted June 26, 2011 When pyrogenesis is started on Mac OS X, a lot of error messages are shown:glwprintf failed (buffer size exceeded?) - return value -1, errno 92The cause of the message is a error of vswprintf(). I found it can be fixed by setting locale. But setting env. variable like "LC_ALL=en_US.UTF-8" didn't work. It seems that OS X accepted only "C" (perhaps and "POSIX"). So I added the following code in the end of SetDefaultIfLocaleInvalid() in GameSetup.cpp;setlocale(LC_ALL , "en_US.utf-8");It worked. So far so good. Manual is shown without corruption. I recommend this patch to Mac users. Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted June 26, 2011 Report Share Posted June 26, 2011 Is the en_US.utf-8 locale guaranteed to be available on all installations of OS X, not just English-language versions? Quote Link to comment Share on other sites More sharing options...
mtkaz Posted June 27, 2011 Author Report Share Posted June 27, 2011 As far as I know, there is no English version of Mac OS X. It's always universal. So you can find English locale, Chinese locale and others in your system wherever you get it. Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted July 6, 2011 Report Share Posted July 6, 2011 r9768 does something similar to this, which seems to work as far as I can tell. (The important thing to check is the alpha warning in the top-left of the menu, where it says "the game’s vision" using a non-ASCII character.) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.