Jump to content

Patch For Glwprintf Error


Recommended Posts

When pyrogenesis is started on Mac OS X, a lot of error messages are shown:

glwprintf failed (buffer size exceeded?) - return value -1, errno 92

The 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.

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...