Skip to content

logchar is defined as char in Windows environments #494

Open
@WorldRobertProject

Description

@WorldRobertProject

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions