Skip to content

Conversation

@ban-dana
Copy link
Contributor

It turns out that the default charset for the DllImport is Ansi which screws unicode strings on their way to the win32 OutputDebugString.
Set the CharSet explictly, also added a unit test (though, there seems to be no way of easily verifying that the actual api was indeed called and the data marshalled properly).
I can think of something Detours-based, but maybe that's an overkill for such a simple thing.

Copy link
Contributor

@FreeAndNil FreeAndNil left a comment

Choose a reason for hiding this comment

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

Thanks a lot.

@FreeAndNil FreeAndNil added this to the 3.2.1 milestone Sep 12, 2025
@FreeAndNil FreeAndNil added the bug label Sep 12, 2025
Copy link
Contributor

@FreeAndNil FreeAndNil left a comment

Choose a reason for hiding this comment

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

@ban-dana an adjustment for the test is needed

Copy link
Contributor

@FreeAndNil FreeAndNil left a comment

Choose a reason for hiding this comment

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

Thanks

@FreeAndNil FreeAndNil merged commit 8d678e1 into apache:master Sep 12, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants