Skip to content

Fixed the issue of Version Info not displaying Unicode strings properly in PE files on the Windows platform

Summary

Build Windows programs (win32/win64) with VersionInfo in Lazarus, When viewing the file properties in a Windows browser, the VersionInfo string entry cannot display the complete Unicode string, only English or 2-character Chinese can be displayed

lazarus中构建带VersionInfo的windows程序(win32/win64)的Exe文件, 在windows浏览器中 查看文件属性 VersionInfo 字符串条目不能显示完整的unicode字符串,只能显示英文或2个字符的中文

System Information

windows 10 or more

Steps to reproduce

Use Unicode string as the content of the versioninfo field 使用中文字符串 作为versioninfo 字段内容

Example Project

What is the current bug behavior?

behavior

What is the expected (correct) behavior?

fixed_behavior

Possible fixes

fixVersionInfo_unicode_bad_length.patch

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information