1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-18 19:01:36 +03:00
Commit Graph

3 Commits

Author SHA1 Message Date
Wez Furlong
9fc762a66b
fix build.rs on windows, take 2
refs: https://github.com/wez/wezterm/issues/3390
2023-03-28 19:45:52 -07:00
Wez Furlong
d5e5bf43d1
fix build.rs on windows
refs: https://github.com/wez/wezterm/issues/3390
2023-03-28 19:32:12 -07:00
Wez Furlong
8092886146
windows: add manifest to config-using console apps, force UTF8 ACP
Lua appears to populate package.path to something based on the
executable path on windows, but since it uses msvcrt in ANSI mode,
that string is encoded in whatever 8-bit MBCS is configured by
the host system ACP setting.

Rust expects that to be UTF-8, but Windows doesn't guarantee it.

This commit updates the manifest for wezterm-gui to tell Windows
that it wants its ACP to be set to UTF-8 prior to launch, which
should resolve this situation for the GUI.

This commit also introduces a more cut-down manifest for the
console-subsystem executables that also use the lua config layer,
which should hopefully resolve this issue for them.

This commit was authored on a mac, so fingers crossed that it
even compiles properly on windows!

refs: https://github.com/wez/wezterm/issues/3390
2023-03-28 19:18:48 -07:00