#664 fixed utf16<=>utf8 conversion

This commit is contained in:
Vadim Grigoruk
2018-08-24 23:42:37 +03:00
parent 1f748f52aa
commit c2077356ad
3 changed files with 7 additions and 6 deletions

View File

@@ -20,6 +20,10 @@
#define KBD_COLS 22
#define KBD_ROWS 17
#if defined(__TIC_WINRT__) || defined(__TIC_WINDOWS__)
#include <windows.h>
#endif
static struct
{
Studio* studio;
@@ -1202,7 +1206,7 @@ static void openSystemPath(const char* path)
sprintf(command, "explorer \"%s\"", path);
wchar_t wcommand[FILENAME_MAX];
mbstowcs(wcommand, command, FILENAME_MAX);
MultiByteToWideChar(CP_UTF8, 0, command, FILENAME_MAX, wcommand, FILENAME_MAX);
_wsystem(wcommand);