windows: s/65001/CP_UTF8

pull/2122/head
nick black 3 years ago
parent 652b617ec7
commit 06351d5a39
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -56,11 +56,11 @@ int prepare_windows_terminal(tinfo* ti, size_t* tablelen, size_t* tableused){
logerror("couldn't get output handle\n");
return -1;
}
if(!SetConsoleOutputCP(65001)){
if(!SetConsoleOutputCP(CP_UTF8)){
logerror("couldn't set output page to utf8\n");
return -1;
}
if(!SetConsoleCP(65001)){
if(!SetConsoleCP(CP_UTF8)){
logerror("couldn't set input page to utf8\n");
return -1;
}

Loading…
Cancel
Save