make log window display unicode properly

pull/1/head
Heiko Hund 2011-11-09 16:15:41 +01:00
parent c697eed849
commit e755155332
1 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ OnLogLine(connection_t *c, char *line)
TCHAR *datetime; TCHAR *datetime;
const SETTEXTEX ste = { const SETTEXTEX ste = {
.flags = ST_SELECTION, .flags = ST_SELECTION,
.codepage = CP_ACP .codepage = CP_UTF8
}; };
flags = strchr(line, ',') + 1; flags = strchr(line, ',') + 1;
@ -460,9 +460,9 @@ StatusDialogFunc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
CHARFORMAT cfm = { CHARFORMAT cfm = {
.cbSize = sizeof(CHARFORMAT), .cbSize = sizeof(CHARFORMAT),
.dwMask = CFM_SIZE|CFM_FACE|CFM_BOLD, .dwMask = CFM_SIZE|CFM_FACE|CFM_BOLD,
.szFaceName = _T("MS Sans Serif"), .szFaceName = _T("Microsoft Sans Serif"),
.dwEffects = 0, .dwEffects = 0,
.yHeight = 100 .yHeight = 160
}; };
if (SendMessage(hLogWnd, EM_SETCHARFORMAT, SCF_DEFAULT, (LPARAM) &cfm) == 0) if (SendMessage(hLogWnd, EM_SETCHARFORMAT, SCF_DEFAULT, (LPARAM) &cfm) == 0)
ShowLocalizedMsg(IDS_ERR_SET_SIZE); ShowLocalizedMsg(IDS_ERR_SET_SIZE);