in src/main/cpp/ide/nblauncher.cpp [161:173]
UINT GetAnsiCodePageForLocale(LCID lcid) {
// See https://devblogs.microsoft.com/oldnewthing/20161007-00/?p=94475
UINT acp;
int sizeInChars = sizeof(acp) / sizeof(TCHAR);
if (GetLocaleInfo(lcid,
LOCALE_IDEFAULTANSICODEPAGE | LOCALE_RETURN_NUMBER,
reinterpret_cast<LPTSTR>(&acp),
sizeInChars) != sizeInChars)
{
return 0;
}
return acp;
}