#664 reset to system locale to properly convert wide chars to utf8
This commit is contained in:
@@ -49,6 +49,8 @@
|
|||||||
#include <lauxlib.h>
|
#include <lauxlib.h>
|
||||||
#include <lualib.h>
|
#include <lualib.h>
|
||||||
|
|
||||||
|
#include <locale.h>
|
||||||
|
|
||||||
#define FRAME_SIZE (TIC80_FULLWIDTH * TIC80_FULLHEIGHT * sizeof(u32))
|
#define FRAME_SIZE (TIC80_FULLWIDTH * TIC80_FULLHEIGHT * sizeof(u32))
|
||||||
#define POPUP_DUR (TIC_FRAMERATE*2)
|
#define POPUP_DUR (TIC_FRAMERATE*2)
|
||||||
|
|
||||||
@@ -1808,6 +1810,7 @@ static void studioClose()
|
|||||||
|
|
||||||
Studio* studioInit(s32 argc, char **argv, s32 samplerate, const char* folder, System* system)
|
Studio* studioInit(s32 argc, char **argv, s32 samplerate, const char* folder, System* system)
|
||||||
{
|
{
|
||||||
|
setlocale(LC_CTYPE, "");
|
||||||
setbuf(stdout, NULL);
|
setbuf(stdout, NULL);
|
||||||
impl.argc = argc;
|
impl.argc = argc;
|
||||||
impl.argv = argv;
|
impl.argv = argv;
|
||||||
|
|||||||
Reference in New Issue
Block a user