apache / apache/logging-log4cxx

logchar is defined as char in Windows environments

Open
#494 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
301
Forks
142
Avg merge
1d 2h
Merged PRs (30d)
29

Description

Though char is not UTF-8 in Windows environments, LOG4CXX_CHAR:STRING=utf-8 is set and logchar is defined as char, when building with vcpkg.
In Japanese Windows environments, char is Shift_JIS.
Despite claiming UTF-8, log messages are output as-is without any conversion, so Japanese messages are correctly logged in Shift_JIS,
but Unicode-specific characters cannot be logged.

We think LOG4CXX_CHAR:STRING should be set wchar_t and logchar should be defined as wchar_t in Windows environments.

version: 1.4.0
vcpkg tag: 2025.04.09

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file, test, or entry point is named. Start by tracing the Windows/vcpkg configuration for LOG4CXX_CHAR and the logchar definition, using version 1.4.0 and vcpkg tag 2025.04.09 as context. Done means Windows logging supports Unicode-specific characters without breaking existing Japanese output.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.