fpcupdeluxe icon indicating copy to clipboard operation
fpcupdeluxe copied to clipboard

The linux arm32 compiler does not properly handle utf8-bom encoded inc files

Open winddriver opened this issue 4 months ago • 2 comments

The compilation environment is windows 10 x64, and the execution file of linux arm32 is generated by cross-compilation

Both fpc and lazarus are the latest versions pulled from gitlab

When an inc file is encoded with utf8-bom, including the file with $I will cause garbled characters

This is a demo project. HelloWorld(inc_utf8_bom).zip

This is a screenshot of the run, in which two Chinese characters have become garbled. image

If you use utf8 encoding, there will be no problem. This is a demonstration project using utf8 encoding HelloWorld(inc_utf8).zip

This is a screenshot of the operation. You can see that the Chinese is displayed normally. image

winddriver avatar Oct 08 '24 07:10 winddriver