date: fix double periods in Hungarian month abbreviations#10945
Merged
sylvestre merged 1 commit intouutils:mainfrom Feb 15, 2026
Merged
date: fix double periods in Hungarian month abbreviations#10945sylvestre merged 1 commit intouutils:mainfrom
sylvestre merged 1 commit intouutils:mainfrom
Conversation
115b877 to
6f850ee
Compare
|
GNU testsuite comparison: |
6f850ee to
7e1efc1
Compare
ICU's DateTimeFormatter with fieldsets::M::medium() returns month abbreviations with trailing periods (e.g., "febr." for Hungarian). When the Hungarian locale format string contains "%Y. %b. %d" (with periods after year and month), the ICU output resulted in double periods: "febr.." This fix strips trailing periods from ICU month abbreviations to match the standard C/POSIX locale behavior. Also adds a new test case for abbreviated month names across multiple locales to prevent regression. Fixes uutils#10921
7e1efc1 to
188aa8e
Compare
|
GNU testsuite comparison: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fix Hungarian month abbreviations showing double periods (e.g., "febr.."). ICU returns "febr." but locale format adds another period. Strip trailing periods from ICU month abbreviations to match standard behavior.
Fixes #10921