1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-24 12:49:03 +00:00

locale_gen: support locales not yet listed in /etc/locale.gen (#11824)

* locale_gen: support locales not yet listed in /etc/locale.gen

On systems like Gentoo where /etc/locale.gen starts with only a handful
of commented examples, set_locale_glibc() now appends missing locale
entries sourced from /usr/share/i18n/SUPPORTED instead of silently
doing nothing. Also extracts the shared locale-entry regex into a
module-level constant RE_LOCALE_ENTRY.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* locale_gen: add changelog fragment for issue 2399

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Alexei Znamensky 2026-04-19 22:43:24 +12:00 committed by GitHub
parent 1b0b8d5cc1
commit 39f4cda6b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 33 additions and 7 deletions

View file

@ -0,0 +1,4 @@
bugfixes:
- "locale_gen - add missing locale entries to ``/etc/locale.gen`` when not already present
(https://github.com/ansible-collections/community.general/issues/2399,
https://github.com/ansible-collections/community.general/pull/11824)."