Include current ANSI codepage into debug information

Close #8303, close #8306
This commit is contained in:
Udo Hoffmann 2020-05-23 17:46:08 +02:00 committed by Don HO
parent e27d1a94c9
commit 3a9a31afb4
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
1 changed files with 8 additions and 0 deletions

View File

@ -234,6 +234,14 @@ INT_PTR CALLBACK DebugInfoDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM /
_debugInfoStr += TEXT("\r\n");
}
{
TCHAR szACP[32];
generic_sprintf(szACP, TEXT("%u"), ::GetACP());
_debugInfoStr += TEXT("Current ANSI codepage : ");
_debugInfoStr += szACP;
_debugInfoStr += TEXT("\r\n");
}
// Detect WINE
PWINEGETVERSION pWGV = (PWINEGETVERSION)GetProcAddress(GetModuleHandle(TEXT("ntdll.dll")), "wine_get_version");
if (pWGV != NULL)