You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it is, the engine only seems to support ASCII characters between 0 and 127, and it's not the bitmap test fonts I'm using, as those are full CP-437 fonts. In order for games to show languages other than English, many languages require Unicode. I've tried adding Unicode myself, but to no success. I added #define SQUNICODE, which set Squirrel to Unicode mode, but that caused a ton of compile errors. After fixing all those errors, by converting normal strings to wchar_t arrays as needed, it compiled, but then started throwing segfaults as soon as it launched.
I've found conflicting information on converting char and wchar_t, and the functions I came up with to convert them are as follows:
As it is, the engine only seems to support ASCII characters between 0 and 127, and it's not the bitmap test fonts I'm using, as those are full CP-437 fonts. In order for games to show languages other than English, many languages require Unicode. I've tried adding Unicode myself, but to no success. I added
#define SQUNICODE
, which set Squirrel to Unicode mode, but that caused a ton of compile errors. After fixing all those errors, by converting normal strings towchar_t
arrays as needed, it compiled, but then started throwing segfaults as soon as it launched.I've found conflicting information on converting
char
andwchar_t
, and the functions I came up with to convert them are as follows:These could be the issue.
The rest of the code is basically just adding
L
to the beginning of every string. I've added a folder with the Unicode edits made here.The text was updated successfully, but these errors were encountered: