--- np2/win9x/sysmng.cpp 2005/02/09 20:11:35 1.10 +++ np2/win9x/sysmng.cpp 2007/11/11 07:11:27 1.12 @@ -1,5 +1,6 @@ #include "compiler.h" #include "np2.h" +#include "oemtext.h" #include "dosio.h" #include "sysmng.h" #include "cpucore.h" @@ -91,6 +92,12 @@ void sysmng_updatecaption(UINT8 flag) { milstr_ncpy(work, np2oscfg.titles, NELEMENTS(work)); milstr_ncat(work, title, NELEMENTS(work)); milstr_ncat(work, clock, NELEMENTS(work)); - SetWindowText(hWndMain, work); +#if defined(OSLANG_UTF8) + TCHAR tchr[512]; + oemtotchar(tchr, NELEMENTS(tchr), work, -1); + SetWindowText(g_hWndMain, tchr); +#else + SetWindowText(g_hWndMain, work); +#endif }