use SetConsoleCtrlHandler() on win32 platform
use GetUserDefaultUILanguage() for guessing locale on win32