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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...