Skip to content

localized month names still not correct in 2.26.1 (#4129 marked as fixed in 2.26.1 release notes) #4177

Description

@xzel23

Description

Issue #4129 was included in the release notes of 2.26.1, but I still observe incorrect formatting after upgrading to that version for these patterns:

        "%d{dd-MMMM-yyyy}{de-DE} %p %m%n",
        "%d{EEEE, dd. MMMM yyyy}{de-DE} %p %m%n",

I stepped into the Log4J code to make sure the correct Jar is used. Since I cannot reopen the original issue, I create a new one.

Configuration

Version: 2.26.1

Operating system: macOS 26.5.2

JDK: BellSoft Liberica-21.0.11-macos-aarch64-javafx

Logs

Excerpt from my unit test logs (SLB4J is my own backend that aims to provide a Log4J compatible pattern):

Discrepancies found:
Pattern: %d{dd-MMMM-yyyy}{de-DE} %p %m%n
Log4j: [10-July-2026 TRACE Trace message
]
SLB4J: [10-Juli-2026 TRACE Trace message
]
Pattern: %d{dd-MMMM-yyyy}{de-DE} %p %m%n
Log4j: [10-July-2026 DEBUG Debug message
]
SLB4J: [10-Juli-2026 DEBUG Debug message
]
Pattern: %d{dd-MMMM-yyyy}{de-DE} %p %m%n
Log4j: [10-July-2026 INFO Test message
]
SLB4J: [10-Juli-2026 INFO Test message
]
Pattern: %d{dd-MMMM-yyyy}{de-DE} %p %m%n
Log4j: [10-July-2026 WARN Warning message
]
SLB4J: [10-Juli-2026 WARN Warning message
]
Pattern: %d{dd-MMMM-yyyy}{de-DE} %p %m%n
Log4j: [10-July-2026 ERROR Error message
]
SLB4J: [10-Juli-2026 ERROR Error message
]
Expected :true
Actual   :false

Reproduction

Same as for #4129.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions