From f051c35a82de86d84e8d714a5d0302d695614288 Mon Sep 17 00:00:00 2001 From: Vadim Grigoruk Date: Sat, 18 Aug 2018 08:36:36 +0300 Subject: [PATCH] #664 reset to system locale to properly convert wide chars to utf8 --- src/studio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/studio.c b/src/studio.c index 7a1664f..2901b72 100644 --- a/src/studio.c +++ b/src/studio.c @@ -49,6 +49,8 @@ #include #include +#include + #define FRAME_SIZE (TIC80_FULLWIDTH * TIC80_FULLHEIGHT * sizeof(u32)) #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) { + setlocale(LC_CTYPE, ""); setbuf(stdout, NULL); impl.argc = argc; impl.argv = argv;