Skip to content

Fix Windows copyright encoding and add GitHub links - #231

Merged
danoli3 merged 1 commit into
masterfrom
fix/windows-copyright-encoding
Oct 28, 2026
Merged

danoli3 merged 1 commit into
masterfrom
fix/windows-copyright-encoding

Conversation

@danoli3

@danoli3 danoli3 commented Oct 28, 2026

Copy link
Copy Markdown
Owner

Windows resource scripts store the copyright symbol as an undeclared raw 0xA9 byte. Resource compilers using a different source code page can corrupt the copyright shown in DLL properties, as reported in #230.

Use L"Copyright \x00A9 ..." in both FreeImage and FreeImagePlus resources, including the CMake templates, so the symbol is independent of the build host code page. Preserve CRLF endings and add this fork's GitHub URL alongside SourceForge in DLL metadata and FreeImage_GetCopyrightMessage().

Validation:

  • Compiled all four legacy/generated resource variants with MinGW windres under code pages 1252, 936, and 65001; verified identical binary resources containing the correct Unicode copyright and both URLs.
  • Confirmed the original resource corrupts the copyright under code pages 936 and 65001.
  • CMake configuration and whitespace checks passed; all four resource sources remain ASCII with CRLF endings.
  • Native Windows Explorer verification has not been run locally.

Fixes #230.

@haobinnan

Copy link
Copy Markdown
Contributor
  • Native Windows Explorer verification has not been run locally.

I'll test it locally after the PR is merged and report the results.

@danoli3

danoli3 commented Oct 28, 2026

Copy link
Copy Markdown
Owner Author

Thanks @haobinnan merging now

@danoli3
danoli3 merged commit 850afc0 into master Oct 28, 2026
73 checks passed
@haobinnan

Copy link
Copy Markdown
Contributor
  • Native Windows Explorer verification has not been run locally.

I'll test it locally after the PR is merged and report the results.

@danoli3
image
Testing is complete, and the display is now correct.

@danoli3

danoli3 commented Oct 28, 2026

Copy link
Copy Markdown
Owner Author

Thanks for feedback and screenshot! nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Garbled Copyright Characters in FreeImage

2 participants