Skip to content

Handle empty DCC_CodePage values without emitting a warning#448

Merged
cirras merged 1 commit into
masterfrom
empty-dcc-codepage
Jun 9, 2026
Merged

Handle empty DCC_CodePage values without emitting a warning#448
cirras merged 1 commit into
masterfrom
empty-dcc-codepage

Conversation

@cirras

@cirras cirras commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

This PR fixes a bug in #397 where we mishandled DCC_CodePage values.

It's easy to forget, but we handle empty and null values equivalently when handling MSBuild properties, as that's how MSBuild itself works. It's impossible for MSBuildState#getProperty to return a null value.

This was causing erroneous warnings to be emitted for projects that defined an empty DCC_CodePage property, or didn't define one at all.

@cirras cirras requested a review from fourls June 9, 2026 03:14

@fourls fourls left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@cirras cirras merged commit 34635f3 into master Jun 9, 2026
4 checks passed
@cirras cirras deleted the empty-dcc-codepage branch June 9, 2026 03:19
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.

2 participants