[patch] Windows EXEs be utf8 on startup.
Original Reporter info from Mantis: marco @marcoonthegit
-
Reporter name: Marco van de Voort
Original Reporter info from Mantis: marco @marcoonthegit
- Reporter name: Marco van de Voort
Description:
Since Windows 10 1903, Windows 10 has an option to manifest utf8 startup encoding. This patch adds support for this.
In theory in time this should also allow utf8 to pass to 1-byte encodings, but that is something for when win8 and older win10s are eol.
I looked at Lazarus manifest support, and it was easy to add. Only I couldn't seem to move the new checkbox, so both checkboxes (large filename and utf8default) are on top of each other. Also the room is a bit limited, and I didn't know if I can just enlarge the box.
The functionality is tested though (see steps to reproduce)
Steps to reproduce:
new ->simple program,
program utf8wintest;
{$R *.res}
begin
writeln('hello world: ',DefaultSystemCodePage);
end.
Compile runs, returns
hello world:1252
Now enable manifest utf8default option, result will be
hello world:65001
Additional information:
This is my first GUI patch, so please thoroughly check the frame.
Mantis conversion info:
- Mantis ID: 36570
- OS: windows
- OS Build: 1903 and higher
- Fixed in revision: 62548 (#d3dab158)