mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-21 11:19:00 +00:00
[PR #11824/39f4cda6 backport][stable-12] locale_gen: support locales not yet listed in /etc/locale.gen (#11883)
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.
* locale_gen: add changelog fragment for issue 2399
---------
(cherry picked from commit 39f4cda6b5)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
449a179d8f
commit
973b5be063
2 changed files with 33 additions and 7 deletions
4
changelogs/fragments/11824-locale-gen-gentoo.yml
Normal file
4
changelogs/fragments/11824-locale-gen-gentoo.yml
Normal 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)."
|
||||
Loading…
Add table
Add a link
Reference in a new issue