Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect code page in console title
`WriteConsoleA` always follows the current code page of a console window, so it's not suitable to pass a multi-byte string in `get_ttyp ()->term_code_page` to it directly. This PR turns to `WriteConsoleW` so that most characters will be translated "as is", and I've tested it on Win 10 v2004 (CMD: ver 10.0.19041.388). Signed-off-by: gdh1995 <gdh1995@qq.com>
- Loading branch information