Skip to content

date: fix double periods in Hungarian month abbreviations#10945

Merged
sylvestre merged 1 commit intouutils:mainfrom
naoNao89:fix-hungarian-month-abbrev
Feb 15, 2026
Merged

date: fix double periods in Hungarian month abbreviations#10945
sylvestre merged 1 commit intouutils:mainfrom
naoNao89:fix-hungarian-month-abbrev

Conversation

@naoNao89
Copy link
Contributor

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

@naoNao89 naoNao89 force-pushed the fix-hungarian-month-abbrev branch from 115b877 to 6f850ee Compare February 15, 2026 01:55
@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/factor/t10. tests/factor/t10 is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/factor/t33. tests/factor/t33 is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/factor/t34. tests/factor/t34 is passing on 'main'. Maybe you have to rebase?
Congrats! The gnu test tests/factor/t32 is no longer failing!
Congrats! The gnu test tests/basenc/bounded-memory is now passing!

@naoNao89 naoNao89 force-pushed the fix-hungarian-month-abbrev branch from 6f850ee to 7e1efc1 Compare February 15, 2026 02:12
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
@naoNao89 naoNao89 force-pushed the fix-hungarian-month-abbrev branch from 7e1efc1 to 188aa8e Compare February 15, 2026 02:15
@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/factor/t10. tests/factor/t10 is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/factor/t33. tests/factor/t33 is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/factor/t34. tests/factor/t34 is passing on 'main'. Maybe you have to rebase?
Skip an intermittent issue tests/pr/bounded-memory (fails in this run but passes in the 'main' branch)
Note: The gnu test tests/tail/pipe-f is now being skipped but was previously passing.
Congrats! The gnu test tests/basenc/bounded-memory is now passing!

@sylvestre sylvestre merged commit 72c782f into uutils:main Feb 15, 2026
155 of 157 checks passed
@naoNao89 naoNao89 deleted the fix-hungarian-month-abbrev branch February 15, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent Hungarian localization of date command

2 participants