GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix marshalling for OutputDebugString parameter, add unit test by ban-dana · Pull Request #271 · apache/logging-log4net

Conversation

@ban-dana

@ban-dana ban-dana commented Sep 12, 2025

Copy link
Copy Markdown
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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
ban-dana added 3 commits September 12, 2025 19:27
@ban-dana
Fix DllImport attribute for OutputDebugString function
ccbf4e7
@ban-dana
Fix encoding issue, add test
8034b0c
@ban-dana
Merge branch 'master' into fix-dll-import-for-outputdebugstring
3ae93c9
FreeAndNil
FreeAndNil approved these changes Sep 12, 2025
View reviewed changes

@FreeAndNil FreeAndNil left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks a lot.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@FreeAndNil FreeAndNil added this to the 3.2.1 milestone Sep 12, 2025
@FreeAndNil FreeAndNil added the bug label Sep 12, 2025
FreeAndNil
FreeAndNil reviewed Sep 12, 2025
View reviewed changes

@FreeAndNil FreeAndNil left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this 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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/log4net.Tests/Appender/OutputDebugAppenderTest.cs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@ban-dana
Run OutputDebugStringAppenderTest on Windows only
1b24ea6
FreeAndNil
FreeAndNil approved these changes Sep 12, 2025
View reviewed changes

@FreeAndNil FreeAndNil left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@FreeAndNil
FreeAndNil merged commit 8d678e1 into apache:master Sep 12, 2025
This was referenced Feb 20, 2026
Bump log4net from 3.2.0 to 3.3.0 OrgBloch/JohBloch.ConfluentKafka.SchemaRegistryExtClient#22
Closed
Bump log4net from 3.2.0 to 3.3.0 frasermolyneux/demo-manager#35
Merged
Bump log4net from 3.2.0 to 3.3.0 acrolinx/sidebar-sdk-dotnet#244
Merged
Bump log4net from 3.2.0 to 3.3.0 ParadoxGameConverters/PGCG.commonItems#769
Merged
Bump log4net from 3.2.0 to 3.3.0 dotpcap/packetnet#244
Open
Bump log4net from 3.2.0 to 3.3.0 guibranco/CrispyWaffle#854
Merged
Bump the minor-patches group with 13 updates Ed-Fi-Exchange-OSS/Ed-Fi-ODS-AdminApp-Legacy#558
Closed
Bump log4net from 3.2.0 to 3.3.0 mteinum/log4net.Rollbar#11
Open
Bump log4net from 3.0.3 to 3.3.0 bbtsoftware/AzureDevOpsPolicyConfigurator#244
Merged
This was referenced Mar 1, 2026
Bump log4net from 3.2.0 to 3.3.0 MjrTom/CastleCore#31
Merged
Bump log4net from 2.0.9 to 3.3.0 KameshKrishnan/DependabotTest#21
Open
This was referenced Mar 9, 2026
Bump dbup-core and 12 others Ed-Fi-Exchange-OSS/Ed-Fi-ODS-AdminApp-Legacy#559
Closed
Bump the minor-patches group with 14 updates Ed-Fi-Exchange-OSS/Ed-Fi-ODS-AdminApp-Legacy#560
Closed
Bump Dapper and 13 others Ed-Fi-Exchange-OSS/Ed-Fi-ODS-AdminApp-Legacy#562
Closed
Bump the minor-patches group with 15 updates Ed-Fi-Exchange-OSS/Ed-Fi-ODS-AdminApp-Legacy#563
Open
This was referenced Mar 24, 2026
Bump log4net from 2.0.17 to 3.3.0 osisdie/dotnet-webapi-k8s-boilerplate#7
Closed
Bump log4net from 3.0.4 to 3.3.0 quartznet/quartznet#2963
Merged
This was referenced Apr 14, 2026
Bump log4net from 1.2.10 to 3.3.0 thanhmv9/ThucTapChuyenMon_MaiVanThanh#1
Open
Bump log4net from 1.2.10 to 3.3.0 pinky39/grove#21
Open
Bump log4net from 1.2.10 to 3.3.0 hatwhite89/SLM_2.1#2
Open
This was referenced Sep 2, 2026
Bump log4net from 2.0.13 to 3.3.0 RotorsAndCams/RAC-ProTAR-Planner#6
Open
Bump log4net from 2.0.13 to 3.3.0 RotorsAndCams/RAC-VORBasedNavigation#1
Open
chore: Bump log4net from 2.0.17 to 3.4.0 mdallago/MDLSoft.NHibernate.AspNet#4
Merged
Bump log4net from 2.0.8 to 3.3.0 decentralized-threat-intelligence/vulnerable_net_core#2
Open
This was referenced Sep 19, 2026
Bump log4net from 3.0.3 to 3.3.0 dadhi/DryIoc#714
Merged
Bump log4net from 2.0.10 to 3.3.0 elvinyao/Topshelf.Abp.Integrations#8
Open
This was referenced Oct 8, 2026
Bump log4net from 2.0.13 to 3.3.0 SBY-TECH/MissionPlanner-gps-config#2
Open
Bump log4net from 2.0.15 to 3.3.0 octgn/OCTGN#2359
Merged
Bump log4net from 2.0.8 to 3.3.0 METACMETAHA/sap-wialon-fleet-audit#15
Closed
Bump log4net from 2.0.8 to 3.3.0 METACMETAHA/sap-wialon-fleet-audit#19
Closed
This was referenced Oct 21, 2026
Bump the nuget group with 2 updates jonathan-vella/ghpc-appmod-eShop#1
Open
Bump the nuget group with 3 updates AmirulAndalib/AMDiscordRPC#1
Open
Bump log4net from 2.0.8 to 3.3.0 yuu-eguci/MultiLangApp-old#6
Closed
This was referenced Oct 29, 2026
Bump the nuget group with 1 update rjmurillo/ApplicationInsights-dotnet#17
Open
Bump log4net from 2.0.12 to 3.3.0 rsymo/AzureDevOpsDemoGenerator-terminal#21
Merged
Bump log4net from 2.0.8 to 3.5.0 devsecops-lab-luis/demo-ghas-multilenguaje#12
Closed
Bump log4net from 2.0.8 to 3.3.0 stockmansy/NoeSBot#10
Merged
Bump log4net from 2.0.10 to 3.3.0 snuids/nyx_dotnet_skeleton#4
Open
This was referenced Nov 6, 2026
Bump log4net from 2.0.3 to 3.3.0 ICMA-SERVICES/TSS_Ogun#4
Open
Bump log4net from 3.2.0 to 3.5.0 marcmy/ProtonVPN-win-app#153
Closed
Dependency (dependabot/nuget): Bump log4net from 3.2.0 to 3.5.0 sg-scale/NETworkManager--2025.10.18.0#10
Open
Bump log4net from 2.0.15 to 3.6.0 sg-scale/NETworkManager--2022.12.20.0#5
Open
This was referenced Nov 13, 2026
Bump log4net from 2.0.8 to 3.6.0 devsecops-lab-luis/demo-ghas-multilenguaje#27
Open
Bump log4net from 2.0.10 to 3.3.0 CoderAllan/CSharpTools#12
Open
Fix transitive Drawing and XML dependency versions marcmy/ProtonVPN-win-app#172
Merged
Bump log4net from 2.0.12 to 3.3.0 MohsenMohamad/Ecommerce#48
Merged
Bump the nuget group with 1 update marcmy/ProtonVPN-win-app#177
Closed
This was referenced Nov 24, 2026
Bump log4net from 2.0.8 to 3.3.0 Unity-Technologies/logzio-dotnet#2
Open
Bump log4net from 2.0.13 to 3.3.0 Unity-Technologies/CastleCore#1
Open
Bump log4net from 2.0.10 to 3.3.0 Martinii89/Unreal-Library#13
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@FreeAndNil FreeAndNil FreeAndNil approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

bug

Projects

None yet

Milestone

3.3.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@ban-dana @FreeAndNil
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.