Allow Console Output In UTF-8 (#378)

- Address issue where console output does not display UTF-8 string properly.
- Resolves https://github.com/PowerShell/Win32-OpenSSH/issues/1225
This commit is contained in:
Bryan Berns 2019-05-20 17:51:05 -04:00 committed by Manoj Ampalam
parent afe4880c37
commit 959cbe3265
1 changed files with 2 additions and 0 deletions

View File

@ -65,5 +65,7 @@ snmprintf(char *buf, size_t len, int *written, const char *fmt, ...)
void
msetlocale(void)
{
// allow console output of unicode characters
SetConsoleOutputCP(CP_UTF8);
}