[PR #458] Pass /utf-8 to cl.exe, sanitize encoding #24142

Open
opened 2026-01-31 09:01:37 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/458

State: closed
Merged: No


Use UTF-8 as source and executable encodings for C++ projects that
contain UTF-8 source files.

Tree 35229a775d fails to build where the
default code page is 936 (GBK), due to multiple files containing UTF-8
encoded strings and/or comments, and these projects set to
fail-on-warning mode. Additionally,
src/host/ut_host/UnicodeLiteral.hpp contains a Windows-1252 encoded
string. This commit adds the /utf-8 option to the affected projects,
and converts src/host/ut_host/UnicodeLiteral.hpp to UTF-8.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/458 **State:** closed **Merged:** No --- Use UTF-8 as source and executable encodings for C++ projects that contain UTF-8 source files. Tree 35229a775d9e9908a8dfb102e01f49b494b29194 fails to build where the default code page is 936 (GBK), due to multiple files containing UTF-8 encoded strings and/or comments, and these projects set to fail-on-warning mode. Additionally, `src/host/ut_host/UnicodeLiteral.hpp` contains a Windows-1252 encoded string. This commit adds the `/utf-8` option to the affected projects, and converts `src/host/ut_host/UnicodeLiteral.hpp` to UTF-8.
claunia added the pull-request label 2026-01-31 09:01:37 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#24142